summaryrefslogtreecommitdiff
path: root/msgpack/fallback.py
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2017-01-12 18:17:00 +0900
committerINADA Naoki <songofacandy@gmail.com>2017-01-12 18:17:00 +0900
commit2481c64cf162d765bfb84bf8e85f0e9861059cbc (patch)
tree3ff38e7c3d23bdfa02fb566d58fc466a6d5f0828 /msgpack/fallback.py
parent1cc3c574a20be224411a5a76a5863c9fa7a0381a (diff)
parente3fea94509767047a8ff45aa07cd58a9ba9694e7 (diff)
downloadmsgpack-python-2481c64cf162d765bfb84bf8e85f0e9861059cbc.tar.gz
Merge branch 'release-0.4'
Diffstat (limited to 'msgpack/fallback.py')
-rw-r--r--msgpack/fallback.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/msgpack/fallback.py b/msgpack/fallback.py
index 11087eb..d2eb9f4 100644
--- a/msgpack/fallback.py
+++ b/msgpack/fallback.py
@@ -164,7 +164,7 @@ class Unpacker(object):
:param int max_buffer_size:
Limits size of data waiting unpacked. 0 means system's INT_MAX (default).
Raises `BufferFull` exception when it is insufficient.
- You shoud set this parameter when unpacking data from untrusted source.
+ You should set this parameter when unpacking data from untrusted source.
:param int max_str_len:
Limits max length of str. (default: 2**31-1)
@@ -214,7 +214,7 @@ class Unpacker(object):
self.file_like = file_like
self._feeding = False
- #: array of bytes feeded.
+ #: array of bytes fed.
self._buffer = bytearray()
#: Which position we currently reads
self._buff_i = 0
@@ -646,17 +646,17 @@ class Packer(object):
Convert user type to builtin type that Packer supports.
See also simplejson's document.
:param str encoding:
- Convert unicode to bytes with this encoding. (default: 'utf-8')
+ Convert unicode to bytes with this encoding. (default: 'utf-8')
:param str unicode_errors:
Error handler for encoding unicode. (default: 'strict')
:param bool use_single_float:
Use single precision float type for float. (default: False)
:param bool autoreset:
- Reset buffer after each pack and return it's content as `bytes`. (default: True).
+ Reset buffer after each pack and return its content as `bytes`. (default: True).
If set this to false, use `bytes()` to get content and `.reset()` to clear buffer.
:param bool use_bin_type:
Use bin type introduced in msgpack spec 2.0 for bytes.
- It also enable str8 type for unicode.
+ It also enables str8 type for unicode.
:param bool strict_types:
If set to true, types will be checked to be exact. Derived classes
from serializeable types will not be serialized and will be