Commit eb99e515 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Got rid of the array module dependency in the re module.

The re module could be used during building before array is built.
parents 5619ab92 19e91584
......@@ -382,8 +382,7 @@ def _mk_bitmap(bits, _CODEBITS=_CODEBITS, _int=int):
def _bytes_to_codes(b):
# Convert block indices to word array
import array
a = array.array('I', b)
a = memoryview(b).cast('I')
assert a.itemsize == _sre.CODESIZE
assert len(a) * a.itemsize == len(b)
return a.tolist()
......
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