Fixed an issue in the py3flakes checker code (forgot to handle assignments to lists).

Sun, 28 Feb 2010 09:06:59 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 28 Feb 2010 09:06:59 +0000
changeset 125
064cfadcf15c
parent 124
bd1d5ac481b0
child 126
7902c9178ee0

Fixed an issue in the py3flakes checker code (forgot to handle assignments to lists).

Utilities/py3flakes/checker.py file | annotate | diff | comparison | revisions
diff -r bd1d5ac481b0 -r 064cfadcf15c Utilities/py3flakes/checker.py
--- a/Utilities/py3flakes/checker.py	Sat Feb 27 11:33:46 2010 +0000
+++ b/Utilities/py3flakes/checker.py	Sun Feb 28 09:06:59 2010 +0000
@@ -507,7 +507,7 @@
             return
         
         # if the name hasn't already been defined in the current scope
-        if isinstance(node, ast.Tuple):
+        if isinstance(node, (ast.Tuple, ast.List)):
             for elt in node.elts:
                 elt.parent = node
                 self.handleAssignName(elt)

eric ide

mercurial