mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-31 16:04:22 +02:00
python: Don't use `from __future__ import unicode_literals
`.
Python 2.5 or older doesn't support it.
This commit is contained in:
parent
15b28a245c
commit
0b327a63fc
@ -1,13 +1,11 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from msgpack import Unpacker
|
from msgpack import Unpacker
|
||||||
|
|
||||||
def test_foobar():
|
def test_foobar():
|
||||||
unpacker = Unpacker(read_size=3)
|
unpacker = Unpacker(read_size=3)
|
||||||
unpacker.feed(b'foobar')
|
unpacker.feed('foobar')
|
||||||
assert unpacker.unpack() == ord(b'f')
|
assert unpacker.unpack() == ord(b'f')
|
||||||
assert unpacker.unpack() == ord(b'o')
|
assert unpacker.unpack() == ord(b'o')
|
||||||
assert unpacker.unpack() == ord(b'o')
|
assert unpacker.unpack() == ord(b'o')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user