]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport effbot's checkin of
authorMichael W. Hudson <mwh@python.net>
Tue, 24 Sep 2002 11:12:05 +0000 (11:12 +0000)
committerMichael W. Hudson <mwh@python.net>
Tue, 24 Sep 2002 11:12:05 +0000 (11:12 +0000)
    revision 1.43 of sre_compile.py

made the code match the comments (1.5.2 compatibility)

Lib/sre_compile.py

index e48be72285b4277747cf2be59b149693d33f1177..1175f6731820f7843369b260ab0761be36c307e3 100644 (file)
@@ -10,7 +10,7 @@
 
 """Internal support module for sre"""
 
-import _sre,sys
+import _sre, sys
 
 from sre_constants import *
 
@@ -278,8 +278,8 @@ def _optimize_unicode(charset, fixup):
         new = comps.setdefault(chunk, block)
         mapping[i] = new
         if new == block:
-            block += 1
-            data += _mk_bitmap(chunk)
+            block = block + 1
+            data = data + _mk_bitmap(chunk)
     header = [block]
     assert MAXCODE == 65535
     for i in range(128):