From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkZNM-0001Y3-OT for qemu-devel@nongnu.org; Fri, 09 Oct 2015 11:14:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkZNK-0006wK-R4 for qemu-devel@nongnu.org; Fri, 09 Oct 2015 11:14:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkZNK-0006w4-M3 for qemu-devel@nongnu.org; Fri, 09 Oct 2015 11:14:26 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 466EEC0BE096 for ; Fri, 9 Oct 2015 15:14:26 +0000 (UTC) From: Markus Armbruster Date: Fri, 9 Oct 2015 17:14:07 +0200 Message-Id: <1444403661-29161-7-git-send-email-armbru@redhat.com> In-Reply-To: <1444403661-29161-1-git-send-email-armbru@redhat.com> References: <1444403661-29161-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PULL 06/20] qapi: Invoke exception superclass initializer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Eric Blake pylint recommends that every exception class should explicitly invoke the superclass __init__, even though things seem to work fine without it. Signed-off-by: Eric Blake Message-Id: <1443565276-4535-4-git-send-email-eblake@redhat.com> Signed-off-by: Markus Armbruster --- scripts/qapi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/qapi.py b/scripts/qapi.py index 362e007..a2d869e 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -81,6 +81,7 @@ def error_path(parent): class QAPISchemaError(Exception): def __init__(self, schema, msg): + Exception.__init__(self) self.fname = schema.fname self.msg = msg self.col = 1 @@ -98,6 +99,7 @@ class QAPISchemaError(Exception): class QAPIExprError(Exception): def __init__(self, expr_info, msg): + Exception.__init__(self) self.info = expr_info self.msg = msg -- 2.4.3