diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2002-06-27 20:08:25 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2002-06-27 20:08:25 (GMT) |
commit | 4fb7027ec00daa8c5f891888dedc1b387853c1e0 (patch) | |
tree | 7342a49e3ea99adc36126421342340bc1bee5176 /Lib | |
parent | 6f7c3431c80b93d0b82e1d1a2d087192f9f9c590 (diff) | |
download | cpython-4fb7027ec00daa8c5f891888dedc1b387853c1e0.zip cpython-4fb7027ec00daa8c5f891888dedc1b387853c1e0.tar.gz cpython-4fb7027ec00daa8c5f891888dedc1b387853c1e0.tar.bz2 |
made the code match the comments (1.5.2 compatibility)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/sre_compile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py index 1c54f67..30957a8 100644 --- a/Lib/sre_compile.py +++ b/Lib/sre_compile.py @@ -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): |