summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2013-03-28 18:27:48 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2013-03-28 18:27:48 +0100
commit91ed159199a7fbb9a156e29f195ab5b2dc6b0159 (patch)
tree3183bb6c4902ab313b77d971f5707a45f1464f9d
parent441e188938ffc7065611fbe96898cb9d52701fa2 (diff)
downloadastroid-git-91ed159199a7fbb9a156e29f195ab5b2dc6b0159.tar.gz
parse is defined in builder module
--HG-- branch : stable
-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