Skip to content

Commit fc09da9

Browse files
committed
fallback: Update docstring.
1 parent 0112957 commit fc09da9

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

msgpack/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = (0, 5, 0)
1+
version = (0, 5, 1)

msgpack/fallback.py

+11-5
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class Unpacker(object):
160160
If it is None (default), msgpack raw is deserialized to Python bytes.
161161
162162
:param str unicode_errors:
163-
Used for decoding msgpack raw with *encoding*.
163+
(deprecated) Used for decoding msgpack raw with *encoding*.
164164
(default: `'strict'`)
165165
166166
:param int max_buffer_size:
@@ -656,25 +656,31 @@ class Packer(object):
656656
:param callable default:
657657
Convert user type to builtin type that Packer supports.
658658
See also simplejson's document.
659-
:param str encoding:
660-
Convert unicode to bytes with this encoding. (default: 'utf-8')
661-
:param str unicode_errors:
662-
Error handler for encoding unicode. (default: 'strict')
659+
663660
:param bool use_single_float:
664661
Use single precision float type for float. (default: False)
662+
665663
:param bool autoreset:
666664
Reset buffer after each pack and return its content as `bytes`. (default: True).
667665
If set this to false, use `bytes()` to get content and `.reset()` to clear buffer.
666+
668667
:param bool use_bin_type:
669668
Use bin type introduced in msgpack spec 2.0 for bytes.
670669
It also enables str8 type for unicode.
670+
671671
:param bool strict_types:
672672
If set to true, types will be checked to be exact. Derived classes
673673
from serializeable types will not be serialized and will be
674674
treated as unsupported type and forwarded to default.
675675
Additionally tuples will not be serialized as lists.
676676
This is useful when trying to implement accurate serialization
677677
for python types.
678+
679+
:param str encoding:
680+
(deprecated) Convert unicode to bytes with this encoding. (default: 'utf-8')
681+
682+
:param str unicode_errors:
683+
(deprecated) Error handler for encoding unicode. (default: 'strict')
678684
"""
679685
def __init__(self, default=None, encoding='utf-8', unicode_errors='strict',
680686
use_single_float=False, autoreset=True, use_bin_type=False,

0 commit comments

Comments
 (0)