diff options
author | Eric Blake <eblake@redhat.com> | 2015-09-29 16:21:01 -0600 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2015-10-12 18:44:54 +0200 |
commit | 59b00542659c8947f9d4e8c28d2d528ab3ab61a5 (patch) | |
tree | 152de6ab33b60cb1a7adb4f99e1a6c2260eb9f6a | |
parent | 7408fb67c0f9403f6e40aecf97cf798fc14e2cd8 (diff) | |
download | qemu-59b00542659c8947f9d4e8c28d2d528ab3ab61a5.zip qemu-59b00542659c8947f9d4e8c28d2d528ab3ab61a5.tar.gz qemu-59b00542659c8947f9d4e8c28d2d528ab3ab61a5.tar.bz2 |
qapi: Invoke exception superclass initializer
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 <eblake@redhat.com>
Message-Id: <1443565276-4535-4-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r-- | scripts/qapi.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |