@@ -138,7 +138,7 @@ class Unpacker(object):
138138 :param int max_buffer_size:
139139 Limits size of data waiting unpacked. 0 means system's INT_MAX (default).
140140 Raises `BufferFull` exception when it is insufficient.
141- You shoud set this parameter when unpacking data from untrusted source.
141+ You should set this parameter when unpacking data from untrusted source.
142142
143143 :param int max_str_len:
144144 Limits max length of str. (default: 2**31-1)
@@ -188,13 +188,13 @@ def __init__(self, file_like=None, read_size=0, use_list=True,
188188 self .file_like = file_like
189189 self ._fb_feeding = False
190190
191- #: array of bytes feeded .
191+ #: array of bytes fed .
192192 self ._fb_buffers = []
193193 #: Which buffer we currently reads
194194 self ._fb_buf_i = 0
195195 #: Which position we currently reads
196196 self ._fb_buf_o = 0
197- #: Total size of _fb_bufferes
197+ #: Total size of _fb_buffers
198198 self ._fb_buf_n = 0
199199
200200 # When Unpacker is used as an iterable, between the calls to next(),
@@ -203,7 +203,7 @@ def __init__(self, file_like=None, read_size=0, use_list=True,
203203 # the correct moments, we have to keep track of how sloppy we were.
204204 # Furthermore, when the buffer is incomplete (that is: in the case
205205 # we raise an OutOfData) we need to rollback the buffer to the correct
206- # state, which _fb_slopiness records.
206+ # state, which _fb_sloppiness records.
207207 self ._fb_sloppiness = 0
208208
209209 self ._max_buffer_size = max_buffer_size or 2 ** 31 - 1
@@ -303,7 +303,7 @@ def _fb_get_extradata(self):
303303
304304 def _fb_read (self , n , write_bytes = None ):
305305 buffs = self ._fb_buffers
306- # We have a redundant codepath for the most common case, such that
306+ # We have a redundant code path for the most common case, such that
307307 # pypy optimizes it properly. This is the case that the read fits
308308 # in the current buffer.
309309 if (write_bytes is None and self ._fb_buf_i < len (buffs ) and
@@ -598,17 +598,17 @@ class Packer(object):
598598 Convert user type to builtin type that Packer supports.
599599 See also simplejson's document.
600600 :param str encoding:
601- Convert unicode to bytes with this encoding. (default: 'utf-8')
601+ Convert unicode to bytes with this encoding. (default: 'utf-8')
602602 :param str unicode_errors:
603603 Error handler for encoding unicode. (default: 'strict')
604604 :param bool use_single_float:
605605 Use single precision float type for float. (default: False)
606606 :param bool autoreset:
607- Reset buffer after each pack and return it's content as `bytes`. (default: True).
607+ Reset buffer after each pack and return its content as `bytes`. (default: True).
608608 If set this to false, use `bytes()` to get content and `.reset()` to clear buffer.
609609 :param bool use_bin_type:
610610 Use bin type introduced in msgpack spec 2.0 for bytes.
611- It also enable str8 type for unicode.
611+ It also enables str8 type for unicode.
612612 """
613613 def __init__ (self , default = None , encoding = 'utf-8' , unicode_errors = 'strict' ,
614614 use_single_float = False , autoreset = True , use_bin_type = False ):
0 commit comments