diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2013-03-28 18:27:48 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2013-03-28 18:27:48 +0100 |
commit | 91ed159199a7fbb9a156e29f195ab5b2dc6b0159 (patch) | |
tree | 3183bb6c4902ab313b77d971f5707a45f1464f9d | |
parent | 441e188938ffc7065611fbe96898cb9d52701fa2 (diff) | |
download | astroid-git-91ed159199a7fbb9a156e29f195ab5b2dc6b0159.tar.gz |
parse is defined in builder module
--HG--
branch : stable
-rw-r--r-- | utils.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -22,6 +22,7 @@ extract information from it __docformat__ = "restructuredtext en" from logilab.astng.exceptions import ASTNGBuildingException +from logilab.astng.builder import parse class ASTWalker: @@ -126,10 +127,6 @@ def _check_children(node): _check_children(child) -from _ast import PyCF_ONLY_AST -def parse(string): - return compile(string, "<string>", 'exec', PyCF_ONLY_AST) - class TreeTester(object): '''A helper class to see _ast tree and compare with astng tree |