]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
qapi/error: Use Python3-style super()
authorJohn Snow <jsnow@redhat.com>
Wed, 21 Apr 2021 19:22:27 +0000 (15:22 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 30 Apr 2021 10:59:54 +0000 (12:59 +0200)
Missed in commit 2cae67bcb5 "qapi: Use super() now we have Python 3".

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210421192233.3542904-3-jsnow@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/error.py

index 126dda7c9b2366d79a0fa8b33abc3b475102ec0c..38bd7c4dd6aa24a57ece92126400fc25d7d9c60c 100644 (file)
@@ -19,7 +19,7 @@ class QAPIError(Exception):
 class QAPISourceError(QAPIError):
     """Error class for all exceptions identifying a source location."""
     def __init__(self, info, col, msg):
-        Exception.__init__(self)
+        super().__init__()
         self.info = info
         self.col = col
         self.msg = msg