summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/utils.py b/utils.py
index 264abbd0..7c6f7ea1 100644
--- a/utils.py
+++ b/utils.py
@@ -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