summaryrefslogtreecommitdiff
path: root/nodes.py
diff options
context:
space:
mode:
authorDaniel Harding <dharding@gmail.com>2010-10-09 19:33:51 +0000
committerDaniel Harding <dharding@gmail.com>2010-10-09 19:33:51 +0000
commitbb4faaf3c873e6a0ee4fa313622b6b9f6a426292 (patch)
tree79f27a960e6d605bb1b69881e56e1ea7e882511c /nodes.py
parent242bdee51d34f2f4bed0a1c29bd5fce152bb6f15 (diff)
downloadastroid-bb4faaf3c873e6a0ee4fa313622b6b9f6a426292.tar.gz
make dictionary comprehensions and set comprehensions have their own scope, like generator expressions
Diffstat (limited to 'nodes.py')
-rw-r--r--nodes.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/nodes.py b/nodes.py
index d46290d..4e2767e 100644
--- a/nodes.py
+++ b/nodes.py
@@ -54,12 +54,13 @@ __docformat__ = "restructuredtext en"
from logilab.astng.node_classes import Arguments, AssAttr, Assert, Assign, \
AssName, AugAssign, Backquote, BinOp, BoolOp, Break, CallFunc, Compare, \
Comprehension, Const, Continue, Decorators, DelAttr, DelName, Delete, \
- Dict, DictComp, Discard, Ellipsis, EmptyNode, ExceptHandler, Exec, \
- ExtSlice, For, From, Getattr, Global, If, IfExp, Import, Index, Keyword, \
- List, ListComp, Name, Pass, Print, Raise, Return, Set, SetComp, Slice, \
- Subscript, TryExcept, TryFinally, Tuple, UnaryOp, While, With, Yield, \
+ Dict, Discard, Ellipsis, EmptyNode, ExceptHandler, Exec, ExtSlice, For, \
+ From, Getattr, Global, If, IfExp, Import, Index, Keyword, \
+ List, ListComp, Name, Pass, Print, Raise, Return, Set, Slice, Subscript, \
+ TryExcept, TryFinally, Tuple, UnaryOp, While, With, Yield, \
const_factory
-from logilab.astng.scoped_nodes import Module, GenExpr, Lambda, Function, Class
+from logilab.astng.scoped_nodes import Module, GenExpr, Lambda, DictComp, \
+ SetComp, Function, Class
ALL_NODE_CLASSES = (
Arguments, AssAttr, Assert, Assign, AssName, AugAssign,