|
|
@ -1,11 +1,4 @@
|
|
|
|
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 commands
|
|
|
|
import compiler
|
|
|
|
|
|
|
|
import errno
|
|
|
|
import errno
|
|
|
|
import getpass
|
|
|
|
import getpass
|
|
|
|
import imp
|
|
|
|
import imp
|
|
|
@ -27,6 +20,14 @@ import time
|
|
|
|
import types
|
|
|
|
import types
|
|
|
|
import zlib
|
|
|
|
import zlib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 compiler
|
|
|
|
|
|
|
|
|
|
|
|
if not hasattr(pkgutil, 'find_loader'):
|
|
|
|
if not hasattr(pkgutil, 'find_loader'):
|
|
|
|
# find_loader() was new in >=2.5, but the modern pkgutil.py syntax has
|
|
|
|
# find_loader() was new in >=2.5, but the modern pkgutil.py syntax has
|
|
|
|
# been kept intentionally 2.3 compatible so we can reuse it.
|
|
|
|
# been kept intentionally 2.3 compatible so we can reuse it.
|
|
|
|