Little fix in the pyflakes checker. 6_1_x

Wed, 27 Jul 2016 13:56:37 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 27 Jul 2016 13:56:37 +0200
branch
6_1_x
changeset 5066
00b319d07753
parent 5060
56eee32610a3
child 5069
10a53320c320

Little fix in the pyflakes checker.
(grafted from 39f27a2a2ea39f20e733072fc1c3bbefc3f1878c)

Plugins/CheckerPlugins/SyntaxChecker/pyflakes/checker.py file | annotate | diff | comparison | revisions
--- a/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/checker.py	Sun Jul 24 19:26:45 2016 +0200
+++ b/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/checker.py	Wed Jul 27 13:56:37 2016 +0200
@@ -702,8 +702,8 @@
                 # Remove UndefinedName messages already reported for this name.
                 self.messages = [
                     m for m in self.messages if not
-                    isinstance(m, messages.UndefinedName) and not
-                    m.message_args[0] == node_name]
+                    isinstance(m, messages.UndefinedName) or
+                    m.message_args[0] != node_name]
 
                 # Bind name to global scope if it doesn't exist already.
                 global_scope.setdefault(node_name, node_value)

eric ide

mercurial