summaryrefslogtreecommitdiff
path: root/msgpack/fallback.py
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-02-22 00:55:32 +0900
committerGitHub <noreply@github.com>2018-02-22 00:55:32 +0900
commitda902f9c1d996fb461f1efef6487ef40d32d365a (patch)
tree746e7ce2f15941c1e0251c10bd95e1f0774dab4b /msgpack/fallback.py
parentae8d4694829d5b58d613c588c30e29dd29860c4f (diff)
downloadmsgpack-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.py10
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):
"""