diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-10 18:08:57 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-10 18:08:57 +0100 |
commit | 8f9eb1423cf2baf721ebdcfdc790530040522093 (patch) | |
tree | 6046345e027de2e899881d18eda9befd52251382 /builder.py | |
parent | afd49250664fd2269190292f89e3a104edb4b75d (diff) | |
download | astroid-8f9eb1423cf2baf721ebdcfdc790530040522093.tar.gz |
cleanup: remove python < 2.5 support
Diffstat (limited to 'builder.py')
-rw-r--r-- | builder.py | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -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 ############################################################## |