]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
made the code match the comments (1.5.2 compatibility)
authorFredrik Lundh <fredrik@pythonware.com>
Thu, 27 Jun 2002 20:08:25 +0000 (20:08 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Thu, 27 Jun 2002 20:08:25 +0000 (20:08 +0000)
Lib/sre_compile.py

index 1c54f67a49c3618dab0fe3bf0c90d6c3e558be08..30957a827b081457a2564c967518d298fc626340 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):