made the code match the comments (1.5.2 compatibility)

This commit is contained in:
Fredrik Lundh 2002-06-27 20:08:25 +00:00
parent 6f7c3431c8
commit 4fb7027ec0
1 changed files with 3 additions and 3 deletions

View 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):