src/eric7/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py

branch
eric7
changeset 9376
e143a7e7254b
parent 9221
bf71ee032bb4
child 9401
38514063ecee
--- a/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py	Sat Oct 01 19:42:50 2022 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py	Sat Oct 01 20:06:27 2022 +0200
@@ -31,7 +31,7 @@
         """
         self.filename = filename
         self.lineno = loc.lineno
-        self.col = getattr(loc, "col_offset", 0)
+        self.col = loc.col_offset
 
     def __str__(self):
         """
@@ -102,27 +102,6 @@
         self.message_args = (name, orig_loc.lineno)
 
 
-class RedefinedInListComp(Message):
-    """
-    Class defining the "Redefined In List Comprehension" message.
-    """
-
-    message_id = "F12"
-    message = "list comprehension redefines %r from line %r"
-
-    def __init__(self, filename, loc, name, orig_loc):
-        """
-        Constructor
-
-        @param filename name of the file (string)
-        @param loc location of the issue
-        @param name name of the redefined object (string)
-        @param orig_loc location of the original definition
-        """
-        Message.__init__(self, filename, loc)
-        self.message_args = (name, orig_loc.lineno)
-
-
 class ImportShadowedByLoopVar(Message):
     """
     Class defining the "Import Shadowed By Loop Var" message.
@@ -366,7 +345,7 @@
     message_id = "F10"
     message = "from __future__ imports must occur at the beginning of the file"
 
-    def __init__(self, filename, loc, names):
+    def __init__(self, filename, loc):
         """
         Constructor
 
@@ -421,17 +400,6 @@
         self.message_args = (names,)
 
 
-class ReturnWithArgsInsideGenerator(Message):
-    """
-    Class defining the "Return values in generator" message.
-
-    Indicates a return statement with arguments inside a generator.
-    """
-
-    message_id = "F14"
-    message = "'return' with argument inside generator"
-
-
 class ReturnOutsideFunction(Message):
     """
     Class defining the "Return outside function" message.

eric ide

mercurial