mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-20 20:33:17 +00:00
PendingDeprecationWarning -> DeprecationWarning (#321)
This commit is contained in:
parent
9e210bfc1a
commit
1bf62ba6f8
3 changed files with 7 additions and 7 deletions
|
@ -103,7 +103,7 @@ def _get_data_from_buffer(obj):
|
|||
def unpack(stream, **kwargs):
|
||||
warnings.warn(
|
||||
"Direct calling implementation's unpack() is deprecated, Use msgpack.unpack() or unpackb() instead.",
|
||||
PendingDeprecationWarning)
|
||||
DeprecationWarning)
|
||||
data = stream.read()
|
||||
return unpackb(data, **kwargs)
|
||||
|
||||
|
@ -229,7 +229,7 @@ class Unpacker(object):
|
|||
if encoding is not None:
|
||||
warnings.warn(
|
||||
"encoding is deprecated, Use raw=False instead.",
|
||||
PendingDeprecationWarning)
|
||||
DeprecationWarning)
|
||||
|
||||
if unicode_errors is None:
|
||||
unicode_errors = 'strict'
|
||||
|
@ -727,7 +727,7 @@ class Packer(object):
|
|||
else:
|
||||
warnings.warn(
|
||||
"encoding is deprecated, Use raw=False instead.",
|
||||
PendingDeprecationWarning)
|
||||
DeprecationWarning)
|
||||
|
||||
if unicode_errors is None:
|
||||
unicode_errors = 'strict'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue