eric6/Plugins/CheckerPlugins/CodeStyleChecker/pycodestyle.py

changeset 8218
7c09585bd960
parent 8208
37836fa8e4ea
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/pycodestyle.py	Sat Apr 10 18:31:17 2021 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/pycodestyle.py	Sat Apr 10 18:38:27 2021 +0200
@@ -2386,7 +2386,7 @@
     """Collect and print the results of the checks."""
 
     def __init__(self, options):
-        super(StandardReport, self).__init__(options)
+        super().__init__(options)
         self._fmt = REPORT_FORMAT.get(options.format.lower(),
                                       options.format)
         self._repeat = options.repeat
@@ -2396,12 +2396,12 @@
     def init_file(self, filename, lines, expected, line_offset):
         """Signal a new file."""
         self._deferred_print = []
-        return super(StandardReport, self).init_file(
+        return super().init_file(
             filename, lines, expected, line_offset)
 
     def error(self, line_number, offset, text, check):
         """Report an error, according to options."""
-        code = super(StandardReport, self).error(line_number, offset,
+        code = super().error(line_number, offset,
                                                  text, check)
         if code and (self.counters[code] == 1 or self._repeat):
             self._deferred_print.append(
@@ -2410,7 +2410,7 @@
 
     def error_args(self, line_number, offset, code, check, *args):
         """Report an error, according to options."""
-        code = super(StandardReport, self).error_args(line_number, offset,
+        code = super().error_args(line_number, offset,
                                                       code, check, *args)
         if code and (self.counters[code] == 1 or self._repeat):
             self._deferred_print.append(
@@ -2450,13 +2450,13 @@
     """Collect and print the results for the changed lines only."""
 
     def __init__(self, options):
-        super(DiffReport, self).__init__(options)
+        super().__init__(options)
         self._selected = options.selected_lines
 
     def error(self, line_number, offset, text, check):
         if line_number not in self._selected[self.filename]:
             return
-        return super(DiffReport, self).error(line_number, offset, text, check)
+        return super().error(line_number, offset, text, check)
 
 
 class StyleGuide(object):

eric ide

mercurial