mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
Remove six.b()
This commit is contained in:
parent
dee2d87d41
commit
63eab502df
1 changed files with 4 additions and 5 deletions
|
@ -1,16 +1,15 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
import six
|
|
||||||
import io
|
import io
|
||||||
import msgpack
|
import msgpack
|
||||||
|
|
||||||
binarydata = [chr(i) for i in range(256)]
|
|
||||||
binarydata = six.b("".join(binarydata))
|
binarydata = bytes(bytearray(range(256)))
|
||||||
|
|
||||||
def gen_binary_data(idx):
|
def gen_binary_data(idx):
|
||||||
data = binarydata[:idx % 300]
|
return binarydata[:idx % 300]
|
||||||
return data
|
|
||||||
|
|
||||||
def test_exceeding_unpacker_read_size():
|
def test_exceeding_unpacker_read_size():
|
||||||
dumpf = io.BytesIO()
|
dumpf = io.BytesIO()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue