Fixed a check in the pep8.py module.

Sun, 16 Jan 2011 16:17:33 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 16 Jan 2011 16:17:33 +0100
changeset 850
8b9f09e7d5d9
parent 849
996367a89673
child 851
321d29b93238

Fixed a check in the pep8.py module.

Plugins/CheckerPlugins/Pep8/pep8.py file | annotate | diff | comparison | revisions
--- a/Plugins/CheckerPlugins/Pep8/pep8.py	Sun Jan 16 16:09:21 2011 +0100
+++ b/Plugins/CheckerPlugins/Pep8/pep8.py	Sun Jan 16 16:17:33 2011 +0100
@@ -410,8 +410,6 @@
     if previous_logical.startswith('@'):
         if max_blank_lines:
             return 0, "E304"
-    elif max_blank_lines > 2 or (indent_level and max_blank_lines == 2):
-        return 0, "E303", max_blank_lines
     elif (logical_line.startswith('def ') or
           logical_line.startswith('class ') or
           logical_line.startswith('@')):
@@ -421,6 +419,8 @@
                 return 0, "E301"
         elif max_blank_lines != 2:
             return 0, "E302", max_blank_lines
+    elif max_blank_lines > 2 or (indent_level and max_blank_lines == 2):
+        return 0, "E303", max_blank_lines
 
 
 def extraneous_whitespace(logical_line):

eric ide

mercurial