mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-11-09 05:51:02 +00: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
67b80f8b8a
commit
9c61ce2c6c
1 changed files with 1 additions and 3 deletions
|
|
@ -1,13 +1,11 @@
|
|||
#!/usr/bin/env python
|
||||
# coding: utf-8
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from msgpack import Unpacker
|
||||
|
||||
def test_foobar():
|
||||
unpacker = Unpacker(read_size=3)
|
||||
unpacker.feed(b'foobar')
|
||||
unpacker.feed('foobar')
|
||||
assert unpacker.unpack() == ord(b'f')
|
||||
assert unpacker.unpack() == ord(b'o')
|
||||
assert unpacker.unpack() == ord(b'o')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue