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 | 0b95c6d89a5eb2d3855b2353bb9817cc7cae3ded (patch) | |
tree | 0a751054bb129071640921092f25e93cb26d9d2b /builder.py | |
parent | 496e40ed0f16e9f90937dc49c82aa1f37652c1ba (diff) | |
download | astroid-git-0b95c6d89a5eb2d3855b2353bb9817cc7cae3ded.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 ############################################################## |