summaryrefslogtreecommitdiff
path: root/bases.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-10-11 17:55:38 +0200
committerEmile Anclin <emile.anclin@logilab.fr>2010-10-11 17:55:38 +0200
commit2f9dc118e314135f0d684ea30817b318155b9d4c (patch)
tree74f11bf32e72ace60fd567ea64118e6cc85a55d9 /bases.py
parenta8a9b54ff5e9583cc0aa9fb2ad084702b6423991 (diff)
downloadastroid-git-2f9dc118e314135f0d684ea30817b318155b9d4c.tar.gz
add a "optional_assign" attribute to the NodeNG
This will make it possible to move LookupMixIn to mixins.py
Diffstat (limited to 'bases.py')
-rw-r--r--bases.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bases.py b/bases.py
index 042ee495..015739f5 100644
--- a/bases.py
+++ b/bases.py
@@ -342,6 +342,7 @@ class NodeNG(BaseClass):
It represents a node of the new abstract syntax tree.
"""
is_statement = False
+ optional_assign = False # True for For (and for Comprehension if py <3.0)
# attributes below are set by the builder module or by raw factories
lineno = None
fromlineno = None