summaryrefslogtreecommitdiff
path: root/builder.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-11-10 18:08:57 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-11-10 18:08:57 +0100
commit8f9eb1423cf2baf721ebdcfdc790530040522093 (patch)
tree6046345e027de2e899881d18eda9befd52251382 /builder.py
parentafd49250664fd2269190292f89e3a104edb4b75d (diff)
downloadastroid-8f9eb1423cf2baf721ebdcfdc790530040522093.tar.gz
cleanup: remove python < 2.5 support
Diffstat (limited to 'builder.py')
-rw-r--r--builder.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/builder.py b/builder.py
index 9efb4e5..7aa0f24 100644
--- a/builder.py
+++ b/builder.py
@@ -41,15 +41,10 @@ from logilab.astng.raw_building import build_module, object_build_class, \
object_build_methoddescriptor, attach_const_node, attach_import_node
from logilab.astng.manager import ASTNGManager
-try:
- from _ast import PyCF_ONLY_AST
- def parse(string):
- return compile(string, "<string>", 'exec', PyCF_ONLY_AST)
- from logilab.astng._nodes_ast import TreeRebuilder
-except ImportError, exc:
- from compiler import parse
- from logilab.astng import patchcomptransformer
- from logilab.astng._nodes_compiler import TreeRebuilder
+from _ast import PyCF_ONLY_AST
+def parse(string):
+ return compile(string, "<string>", 'exec', PyCF_ONLY_AST)
+from logilab.astng._nodes_ast import TreeRebuilder
# ast NG builder ##############################################################