support python 2.2.0

This commit is contained in:
David Rose 2004-06-09 22:18:21 +00:00
parent 67a0fd47db
commit d3226bd9c3
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ outputDir = ''
extensionsDir = '' extensionsDir = ''
interrogateLib = '' interrogateLib = ''
codeLibs = [] codeLibs = []
doSqueeze = True doSqueeze = 1
etcPath = [] etcPath = []
def doGetopts(): def doGetopts():
@ -102,7 +102,7 @@ def doGetopts():
FFIConstants.wantComments = 0 FFIConstants.wantComments = 0
FFIConstants.wantTypeChecking = 0 FFIConstants.wantTypeChecking = 0
elif (flag == '-n'): elif (flag == '-n'):
doSqueeze = False doSqueeze = 0
elif (flag in ['-g', '-t', '-p', '-o']): elif (flag in ['-g', '-t', '-p', '-o']):
FFIConstants.notify.debug("option is deprecated: %s" % (flag)) FFIConstants.notify.debug("option is deprecated: %s" % (flag))

View File

@ -150,9 +150,9 @@ for package in packages:
# instrument it. # instrument it.
try: try:
__import__(basename, globals(), locals()) __import__(basename, globals(), locals())
isModule = True isModule = 1
except: except:
isModule = False isModule = 0
if isModule: if isModule:
if basename not in DoGenPyCode.codeLibs: if basename not in DoGenPyCode.codeLibs: