Handle failure to import the ast module

pull/35/head
Alex Willmer 7 years ago
parent 81fe37b108
commit c854bec6f6

@ -1,4 +1,9 @@
import ast
try:
import ast
except ImportError:
# ast module is not available in Python 2.4.x, instead we shall use the
# the compiler module as a fallback
ast = None
import commands
import compiler
import errno

Loading…
Cancel
Save