diff --git a/mitogen/master.py b/mitogen/master.py index de9048eb..db91aece 100644 --- a/mitogen/master.py +++ b/mitogen/master.py @@ -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