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