diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-02 11:03:49 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-02 11:03:49 +0100 |
commit | 9b4fcb2cb2add72aaeeed7c9225067cadea2371b (patch) | |
tree | 5652af55c60c2264533e5d44baa0b8c25acd97f2 /as_string.py | |
parent | 1dde1727e2b6ec58e8940c9e6677ea76da3d3489 (diff) | |
download | astroid-git-9b4fcb2cb2add72aaeeed7c9225067cadea2371b.tar.gz |
cleanup: remove unused class ASTVisitor
Diffstat (limited to 'as_string.py')
-rw-r--r-- | as_string.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/as_string.py b/as_string.py index fe1da852..61ce44e0 100644 --- a/as_string.py +++ b/as_string.py @@ -34,7 +34,6 @@ It will probably not work on compiler.ast or _ast trees. """ import sys -from logilab.astng.utils import ASTVisitor INDENT = ' ' # 4 spaces ; keep indentation variable @@ -50,7 +49,7 @@ def _import_string(names): return ', '.join(_names) -class AsStringVisitor(ASTVisitor): +class AsStringVisitor(object): """Visitor to render an ASTNG node as string """ def __call__(self, node): @@ -179,7 +178,11 @@ class AsStringVisitor(ASTVisitor): def visit_discard(self, node): """return an astng.Discard node as string""" return node.value.accept(self) - + + def visit_emptynode(self, node): + """dummy method for visiting an Empty node""" + return '' + def visit_excepthandler(self, node): if node.type: if node.name: |