diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2018-02-22 00:55:32 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 00:55:32 +0900 |
commit | da902f9c1d996fb461f1efef6487ef40d32d365a (patch) | |
tree | 746e7ce2f15941c1e0251c10bd95e1f0774dab4b /msgpack/fallback.py | |
parent | ae8d4694829d5b58d613c588c30e29dd29860c4f (diff) | |
download | msgpack-python-da902f9c1d996fb461f1efef6487ef40d32d365a.tar.gz |
Move unpack() from each implementation to __init__. (#286)
Fixes #285
Diffstat (limited to 'msgpack/fallback.py')
-rw-r--r-- | msgpack/fallback.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/msgpack/fallback.py b/msgpack/fallback.py index 7e40686..3609fd8 100644 --- a/msgpack/fallback.py +++ b/msgpack/fallback.py @@ -100,16 +100,6 @@ def _get_data_from_buffer(obj): return view -def unpack(stream, **kwargs): - """ - Unpack an object from `stream`. - - Raises `ExtraData` when `packed` contains extra bytes. - See :class:`Unpacker` for options. - """ - data = stream.read() - return unpackb(data, **kwargs) - def unpackb(packed, **kwargs): """ |