summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--msgpack/_unpacker.pyx8
-rw-r--r--msgpack/fallback.py10
2 files changed, 0 insertions, 18 deletions
diff --git a/msgpack/_unpacker.pyx b/msgpack/_unpacker.pyx
index 3c9b7b3..3a9d494 100644
--- a/msgpack/_unpacker.pyx
+++ b/msgpack/_unpacker.pyx
@@ -200,14 +200,6 @@ def unpackb(object packed, *, object object_hook=None, object list_hook=None,
raise ValueError("Unpack failed: error = %d" % (ret,))
-def unpack(object stream, **kwargs):
- PyErr_WarnEx(
- DeprecationWarning,
- "Direct calling implementation's unpack() is deprecated, Use msgpack.unpack() or unpackb() instead.", 1)
- data = stream.read()
- return unpackb(data, **kwargs)
-
-
cdef class Unpacker(object):
"""Streaming unpacker.
diff --git a/msgpack/fallback.py b/msgpack/fallback.py
index 577e571..3faacbf 100644
--- a/msgpack/fallback.py
+++ b/msgpack/fallback.py
@@ -131,16 +131,6 @@ def _get_data_from_buffer(obj):
return view
-def unpack(stream, **kwargs):
- warnings.warn(
- "Direct calling implementation's unpack() is deprecated, Use msgpack.unpack() or unpackb() instead.",
- DeprecationWarning,
- stacklevel=2,
- )
- data = stream.read()
- return unpackb(data, **kwargs)
-
-
def unpackb(packed, **kwargs):
"""
Unpack an object from `packed`.