Plugins/CheckerPlugins/Pep8/Pep8Dialog.py

changeset 1308
2b602a1521e7
parent 1131
7781e396c903
child 1509
c0b5e693b0eb
--- a/Plugins/CheckerPlugins/Pep8/Pep8Dialog.py	Fri Sep 09 09:33:19 2011 +0200
+++ b/Plugins/CheckerPlugins/Pep8/Pep8Dialog.py	Fri Sep 09 11:54:20 2011 +0200
@@ -325,8 +325,8 @@
                     checker.messages.sort(key=lambda a: a[1])
                     for message in checker.messages:
                         fname, lineno, position, text = message
-                        if not source[lineno - 1].strip()\
-                           .endswith("__IGNORE_WARNING__"):
+                        if "__IGNORE_WARNING__" not in Utilities.extractLineFlags(
+                                source[lineno - 1].strip()):
                             self.noResults = False
                             fixed = False
                             if fixer:

eric ide

mercurial