mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-27 15:44:11 +00:00
Remove deprecated submodule unpack (#385)
This commit is contained in:
parent
9ae43709e4
commit
9f4b2d53b7
2 changed files with 0 additions and 18 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue