Commit 4fb7027e authored by Fredrik Lundh's avatar Fredrik Lundh

made the code match the comments (1.5.2 compatibility)

parent 6f7c3431
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment