summaryrefslogtreecommitdiff
path: root/msgpack
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-12-13 15:10:32 +0900
committerInada Naoki <songofacandy@gmail.com>2019-12-13 15:10:32 +0900
commit42f5ecfd514cc5797385df0c72258a16fe645c72 (patch)
tree2f4f1baad0980d20ff48d1b0e120aca7511f378f /msgpack
parent5e1fe818e3839c85a38419859bcec6d38979c620 (diff)
downloadmsgpack-python-42f5ecfd514cc5797385df0c72258a16fe645c72.tar.gz
Fix some typo
Diffstat (limited to 'msgpack')
-rw-r--r--msgpack/fallback.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/msgpack/fallback.py b/msgpack/fallback.py
index 08e8d46..263e74e 100644
--- a/msgpack/fallback.py
+++ b/msgpack/fallback.py
@@ -41,7 +41,7 @@ else:
if hasattr(sys, "pypy_version_info"):
- # cStringIO is slow on PyPy, StringIO is faster. However: PyPy's own
+ # StringIO is slow on PyPy, StringIO is faster. However: PyPy's own
# StringBuilder is fastest.
from __pypy__ import newlist_hint
@@ -147,7 +147,7 @@ def unpackb(packed, **kwargs):
if sys.version_info < (2, 7, 6):
def _unpack_from(f, b, o=0):
- """Explicit typcast for legacy struct.unpack_from"""
+ """Explicit type cast for legacy struct.unpack_from"""
return struct.unpack_from(f, bytes(b), o)
@@ -178,7 +178,7 @@ class Unpacker(object):
:param int timestamp:
Control how timestamp type is unpacked:
- 0 - Tiemstamp
+ 0 - Timestamp
1 - float (Seconds from the EPOCH)
2 - int (Nanoseconds from the EPOCH)
3 - datetime.datetime (UTC). Python 2 is not supported.
@@ -749,7 +749,7 @@ class Packer(object):
"""
MessagePack Packer
- usage:
+ Usage:
packer = Packer()
astream.write(packer.pack(a))
@@ -783,7 +783,7 @@ class Packer(object):
:param bool datetime:
If set to true, datetime with tzinfo is packed into Timestamp type.
Note that the tzinfo is stripped in the timestamp.
- You can get UTC datetime with `timestamp=3` option of the Unapcker.
+ You can get UTC datetime with `timestamp=3` option of the Unpacker.
(Python 2 is not supported).
:param str unicode_errors: