Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py

changeset 4502
76f2b46437a6
parent 4021
195a471c327b
child 4541
e8ddd9d76414
--- a/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py	Tue Oct 20 19:14:55 2015 +0200
+++ b/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py	Tue Oct 20 19:19:12 2015 +0200
@@ -248,26 +248,6 @@
         self.message_args = (name,)
 
 
-class Redefined(Message):
-    """
-    Class defining the "Redefined" message.
-    """
-    message_id = 'F09'
-    message = 'redefinition of %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 function (string)
-        @param orig_loc location of the original definition
-        """
-        Message.__init__(self, filename, loc)
-        self.message_args = (name, orig_loc.lineno)
-
-
 class LateFutureImport(Message):
     """
     Class defining the "Late Future Import" message.
@@ -317,3 +297,13 @@
     """
     message_id = 'F14'
     message = '\'return\' with argument inside generator'
+
+
+class ReturnOutsideFunction(Message):
+    """
+    Class defining the "Return outside function" message.
+    
+    Indicates a return statement outside of a function/method.
+    """
+    message_id = 'F15'
+    message = '\'return\' outside function'

eric ide

mercurial