Bladeren bron

qapi/error: Use Python3-style super()

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>
John Snow 4 jaren geleden
bovenliggende
commit
b54e07cc46
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      scripts/qapi/error.py

+ 1 - 1
scripts/qapi/error.py

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