diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2009-02-23 18:39:38 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2009-02-23 18:39:38 +0100 |
commit | a66df7b892b680afade000eb9bb8fe860c5afec0 (patch) | |
tree | 4fde79c3e033444cefe5e3bf826a252c0253606f /utils.py | |
parent | ea3b7d744c1ae3e6d8121e4d777228f4f4426de1 (diff) | |
download | astroid-git-a66df7b892b680afade000eb9bb8fe860c5afec0.tar.gz |
small correction for RebuildVisitor
--HG--
branch : _ast_compat
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -201,10 +201,17 @@ class ASTVisitor(object): def visit_bool(self, node): """dummy method for visiting an Bool node""" -REDIRECT = {'Expr': 'Discard', - 'ImportFrom': 'From', +REDIRECT = { 'Attribute': 'Getattr', + 'Call': 'CallFunc', + 'ClassDef': 'Class', 'comprehension': "ListCompFor", + 'excepthandler': 'ExceptHandler', + 'Expr': 'Discard', + 'FunctionDef': 'Function', + 'GeneratorExp': 'GenExpr', + 'ImportFrom': 'From', + 'keyword': 'Keyword', 'Repr': 'Backquote', 'Add': 'BinOp', |