diff options
Diffstat (limited to 'Lib/sre_compile.py')
| -rw-r--r-- | Lib/sre_compile.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py index 6b280520b3..5b660844b3 100644 --- a/Lib/sre_compile.py +++ b/Lib/sre_compile.py @@ -353,6 +353,7 @@ def _optimize_unicode(charset, fixup): # Convert byte array to word array mapping = array.array(code, mapping) assert mapping.itemsize == _sre.CODESIZE + assert len(mapping) * mapping.itemsize == 256 header = header + mapping.tolist() data[0:0] = header return [(BIGCHARSET, data)] |
