summaryrefslogtreecommitdiff
path: root/msgpack/fallback.py
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-11-09 21:39:25 +0900
committerGitHub <noreply@github.com>2018-11-09 21:39:25 +0900
commit1bf62ba6f8f94ab8a7dd135e0039ee3b10e0e96c (patch)
tree64a569af7058a9e04c1cbb24c97ea72db31dc260 /msgpack/fallback.py
parent9e210bfc1a922031db67bf42e508b1b4550814c6 (diff)
downloadmsgpack-python-1bf62ba6f8f94ab8a7dd135e0039ee3b10e0e96c.tar.gz
PendingDeprecationWarning -> DeprecationWarning (#321)
Diffstat (limited to 'msgpack/fallback.py')
-rw-r--r--msgpack/fallback.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/msgpack/fallback.py b/msgpack/fallback.py
index 5b4d6ce..197b6d2 100644
--- a/msgpack/fallback.py
+++ b/msgpack/fallback.py
@@ -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'