mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-20 04:13:16 +00:00
PendingDeprecationWarning -> DeprecationWarning (#321)
This commit is contained in:
parent
9e210bfc1a
commit
1bf62ba6f8
3 changed files with 7 additions and 7 deletions
|
@ -121,7 +121,7 @@ cdef class Packer(object):
|
|||
bint use_single_float=False, bint autoreset=True, bint use_bin_type=False,
|
||||
bint strict_types=False):
|
||||
if encoding is not None:
|
||||
PyErr_WarnEx(PendingDeprecationWarning, "encoding is deprecated.", 1)
|
||||
PyErr_WarnEx(DeprecationWarning, "encoding is deprecated.", 1)
|
||||
self.use_float = use_single_float
|
||||
self.strict_types = strict_types
|
||||
self.autoreset = autoreset
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue