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
commit0b95c6d89a5eb2d3855b2353bb9817cc7cae3ded (patch)
tree0a751054bb129071640921092f25e93cb26d9d2b /builder.py
parent496e40ed0f16e9f90937dc49c82aa1f37652c1ba (diff)
downloadastroid-git-0b95c6d89a5eb2d3855b2353bb9817cc7cae3ded.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 9efb4e56..7aa0f247 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 ##############################################################