From patchwork Tue Sep 29 03:27:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Blake X-Patchwork-Id: 523705 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 79B2614029C for ; Tue, 29 Sep 2015 15:07:54 +1000 (AEST) Received: from localhost ([::1]:45420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgn8q-00084p-RT for incoming@patchwork.ozlabs.org; Tue, 29 Sep 2015 01:07:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZglZt-0007ya-UJ for qemu-devel@nongnu.org; Mon, 28 Sep 2015 23:27:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZglZr-0004gv-Ip for qemu-devel@nongnu.org; Mon, 28 Sep 2015 23:27:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZglZr-0004gq-Dh for qemu-devel@nongnu.org; Mon, 28 Sep 2015 23:27:39 -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 2DC15461D5; Tue, 29 Sep 2015 03:27:39 +0000 (UTC) Received: from red.redhat.com (ovpn-113-188.phx2.redhat.com [10.3.113.188]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8T3RaDD018760; Mon, 28 Sep 2015 23:27:38 -0400 From: Eric Blake To: qemu-devel@nongnu.org Date: Mon, 28 Sep 2015 21:27:16 -0600 Message-Id: <1443497249-15361-4-git-send-email-eblake@redhat.com> In-Reply-To: <1443497249-15361-1-git-send-email-eblake@redhat.com> References: <1443497249-15361-1-git-send-email-eblake@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Michael Roth , marcandre.lureau@redhat.com, armbru@redhat.com, ehabkost@redhat.com Subject: [Qemu-devel] [PATCH v6 03/16] qapi: Invoke exception superclass initializer X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- v6: split off of 2/26 --- 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