Update of /cvsroot/python/python/dist/src/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16846 Modified Files: sre_compile.py Log Message: Revert 1.51 booleans so that sre will still run on old pythons. Index: sre_compile.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/sre_compile.py,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** sre_compile.py 26 Mar 2004 20:16:39 -0000 1.53 --- sre_compile.py 27 Mar 2004 09:24:36 -0000 1.54 *************** *** 204,208 **** out = [] outappend = out.append ! charmap = [False]*256 try: for op, av in charset: --- 204,208 ---- out = [] outappend = out.append ! charmap = [0]*256 try: for op, av in charset: *************** *** 210,217 **** outappend((op, av)) elif op is LITERAL: ! charmap[fixup(av)] = True elif op is RANGE: for i in range(fixup(av[0]), fixup(av[1])+1): ! charmap[i] = True elif op is CATEGORY: # XXX: could append to charmap tail --- 210,217 ---- outappend((op, av)) elif op is LITERAL: ! charmap[fixup(av)] = 1 elif op is RANGE: for i in range(fixup(av[0]), fixup(av[1])+1): ! charmap[i] = 1 elif op is CATEGORY: # XXX: could append to charmap tail *************** *** 299,303 **** except ImportError: return charset ! charmap = [False]*65536 negate = 0 try: --- 299,303 ---- except ImportError: return charset ! charmap = [0]*65536 negate = 0 try: *************** *** 306,313 **** negate = 1 elif op is LITERAL: ! charmap[fixup(av)] = True elif op is RANGE: for i in xrange(fixup(av[0]), fixup(av[1])+1): ! charmap[i] = True elif op is CATEGORY: # XXX: could expand category --- 306,313 ---- negate = 1 elif op is LITERAL: ! charmap[fixup(av)] = 1 elif op is RANGE: for i in xrange(fixup(av[0]), fixup(av[1])+1): ! charmap[i] = 1 elif op is CATEGORY: # XXX: could expand category