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

View File

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