summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2015-11-09 02:34:17 +0900
committerINADA Naoki <songofacandy@gmail.com>2015-11-09 02:34:17 +0900
commita1317b604f7eb83575c4a0221db028c1929e8026 (patch)
treed4fda8f4f1b5e91ace81fefdeaa4fe527be6da80
parentca87a7e539e0bd1b69ce8e715b1fd6ecab5f5553 (diff)
downloadmsgpack-python-a1317b604f7eb83575c4a0221db028c1929e8026.tar.gz
refactor
-rw-r--r--msgpack/_packer.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/msgpack/_packer.pyx b/msgpack/_packer.pyx
index 7129208..0a6513c 100644
--- a/msgpack/_packer.pyx
+++ b/msgpack/_packer.pyx
@@ -135,7 +135,7 @@ cdef class Packer(object):
ret = msgpack_pack_false(&self.pk)
elif PyLong_Check(o):
# PyInt_Check(long) is True for Python 3.
- # Sow we should test long before int.
+ # So we should test long before int.
try:
if o > 0:
ullval = o
@@ -143,7 +143,7 @@ cdef class Packer(object):
else:
llval = o
ret = msgpack_pack_long_long(&self.pk, llval)
- except OverflowError, oe:
+ except OverflowError as oe:
if not default_used and self._default is not None:
o = self._default(o)
default_used = True