? d1 Index: makeconfig.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Tools/freeze/makeconfig.py,v retrieving revision 1.4 diff -u -r1.4 makeconfig.py --- makeconfig.py 2001/03/18 11:27:58 1.4 +++ makeconfig.py 2001/03/20 13:20:12 @@ -12,7 +12,7 @@ line = infp.readline() if not line: break outfp.write(line) - if m1 and m1.search(line) >= 0: + if m1 and m1.search(line): m1 = None for mod in modules: if mod in never: @@ -22,7 +22,7 @@ outfp.write('extern void init%s();\n' % mod) if with_ifdef: outfp.write("#endif\n") - elif m2 and m2.search(line) >= 0: + elif m2 and m2.search(line): m2 = None for mod in modules: if mod in never: Index: parsesetup.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Tools/freeze/parsesetup.py,v retrieving revision 1.2 diff -u -r1.2 parsesetup.py --- parsesetup.py 2001/03/18 11:27:58 1.2 +++ parsesetup.py 2001/03/20 13:20:13 @@ -13,11 +13,17 @@ def getmakevars(filename): variables = {} fp = open(filename) + pendingline = "" try: while 1: line = fp.readline() + if pendingline: + line = pendingline + line + pendingline = "" if not line: break + if line.endswith('\\\n'): + pendingline = line[:-2] matchobj = makevardef.match(line) if not matchobj: continue @@ -44,15 +50,22 @@ modules = {} variables = {} fp = open(filename) + pendingline = "" try: while 1: line = fp.readline() + if pendingline: + line = pendingline + line + pendingline = "" if not line: break # Strip comments i = string.find(line, '#') if i >= 0: line = line[:i] + if line.endswith('\\\n'): + pendingline = line[:-2] + continue matchobj = setupvardef.match(line) if matchobj: (name, value) = matchobj.group(1, 2)