@@ -1188,7 +1188,7 @@ to the above, as in the following example::
11881188
11891189 class StyleAdapter(logging.LoggerAdapter):
11901190 def __init__(self, logger, extra=None):
1191- super(StyleAdapter, self ).__init__(logger, extra or {})
1191+ super().__init__(logger, extra or {})
11921192
11931193 def log(self, level, msg, /, *args, **kwargs):
11941194 if self.isEnabledFor(level):
@@ -1783,7 +1783,7 @@ as in the following complete example::
17831783 return tuple(o)
17841784 elif isinstance(o, unicode):
17851785 return o.encode('unicode_escape').decode('ascii')
1786- return super(Encoder, self ).default(o)
1786+ return super().default(o)
17871787
17881788 class StructuredMessage:
17891789 def __init__(self, message, /, **kwargs):
@@ -2175,11 +2175,11 @@ class, as shown in the following example::
21752175 """
21762176 Format an exception so that it prints on a single line.
21772177 """
2178- result = super(OneLineExceptionFormatter, self ).formatException(exc_info)
2178+ result = super().formatException(exc_info)
21792179 return repr(result) # or format into one line however you want to
21802180
21812181 def format(self, record):
2182- s = super(OneLineExceptionFormatter, self ).format(record)
2182+ s = super().format(record)
21832183 if record.exc_text:
21842184 s = s.replace('\n', '') + '|'
21852185 return s
@@ -2813,7 +2813,7 @@ refer to the comments in the code snippet for more detailed information.
28132813 #
28142814 class QtHandler(logging.Handler):
28152815 def __init__(self, slotfunc, *args, **kwargs):
2816- super(QtHandler, self ).__init__(*args, **kwargs)
2816+ super().__init__(*args, **kwargs)
28172817 self.signaller = Signaller()
28182818 self.signaller.signal.connect(slotfunc)
28192819
@@ -2883,7 +2883,7 @@ refer to the comments in the code snippet for more detailed information.
28832883 }
28842884
28852885 def __init__(self, app):
2886- super(Window, self ).__init__()
2886+ super().__init__()
28872887 self.app = app
28882888 self.textedit = te = QtWidgets.QPlainTextEdit(self)
28892889 # Set whatever the default monospace font is for the platform
0 commit comments