Plugins/CheckerPlugins/Pep8/Pep257Checker.py

changeset 2925
04896af1b0e1
parent 2923
01ac1f364b38
child 2928
4f74d3f595ce
diff -r 01ac1f364b38 -r 04896af1b0e1 Plugins/CheckerPlugins/Pep8/Pep257Checker.py
--- a/Plugins/CheckerPlugins/Pep8/Pep257Checker.py	Wed Sep 18 19:53:54 2013 +0200
+++ b/Plugins/CheckerPlugins/Pep8/Pep257Checker.py	Thu Sep 19 18:58:33 2013 +0200
@@ -778,7 +778,6 @@
                 not contextLines[cti].strip().startswith(
                 ('"""', 'r"""', 'u"""', "'''", "r'''", "u'''")):
             cti += 1
-        
         if cti == len(contextLines):
             return
         
@@ -835,7 +834,7 @@
             return
         
         docstrings = docstringContext.source()
-        if len(docstrings) in [1, 3]:
+        if len(docstrings) <= 3:
             # correct/invalid one-liner
             return
         

eric ide

mercurial