@@ -41,7 +41,7 @@ def _is_recursionerror(e):
41
41
42
42
43
43
if hasattr (sys , "pypy_version_info" ):
44
- # cStringIO is slow on PyPy, StringIO is faster. However: PyPy's own
44
+ # StringIO is slow on PyPy, StringIO is faster. However: PyPy's own
45
45
# StringBuilder is fastest.
46
46
from __pypy__ import newlist_hint
47
47
@@ -147,7 +147,7 @@ def unpackb(packed, **kwargs):
147
147
if sys .version_info < (2 , 7 , 6 ):
148
148
149
149
def _unpack_from (f , b , o = 0 ):
150
- """Explicit typcast for legacy struct.unpack_from"""
150
+ """Explicit type cast for legacy struct.unpack_from"""
151
151
return struct .unpack_from (f , bytes (b ), o )
152
152
153
153
@@ -178,7 +178,7 @@ class Unpacker(object):
178
178
:param int timestamp:
179
179
Control how timestamp type is unpacked:
180
180
181
- 0 - Tiemstamp
181
+ 0 - Timestamp
182
182
1 - float (Seconds from the EPOCH)
183
183
2 - int (Nanoseconds from the EPOCH)
184
184
3 - datetime.datetime (UTC). Python 2 is not supported.
@@ -749,7 +749,7 @@ class Packer(object):
749
749
"""
750
750
MessagePack Packer
751
751
752
- usage :
752
+ Usage :
753
753
754
754
packer = Packer()
755
755
astream.write(packer.pack(a))
@@ -783,7 +783,7 @@ class Packer(object):
783
783
:param bool datetime:
784
784
If set to true, datetime with tzinfo is packed into Timestamp type.
785
785
Note that the tzinfo is stripped in the timestamp.
786
- You can get UTC datetime with `timestamp=3` option of the Unapcker .
786
+ You can get UTC datetime with `timestamp=3` option of the Unpacker .
787
787
(Python 2 is not supported).
788
788
789
789
:param str unicode_errors:
0 commit comments