summaryrefslogtreecommitdiff
path: root/msgpack/_unpacker.pyx
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-12-05 20:47:01 +0900
committerGitHub <noreply@github.com>2019-12-05 20:47:01 +0900
commit9f4b2d53b77c5ccd96e3ceb359747960cbf03bd4 (patch)
tree148fa54367f52794bf3124a6ece3d0d43b493e20 /msgpack/_unpacker.pyx
parent9ae43709e42092c7f6a4e990d696d9005fa1623d (diff)
downloadmsgpack-python-9f4b2d53b77c5ccd96e3ceb359747960cbf03bd4.tar.gz
Remove deprecated submodule unpack (#385)
Diffstat (limited to 'msgpack/_unpacker.pyx')
-rw-r--r--msgpack/_unpacker.pyx8
1 files changed, 0 insertions, 8 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.