From a1317b604f7eb83575c4a0221db028c1929e8026 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Mon, 9 Nov 2015 02:34:17 +0900 Subject: refactor --- msgpack/_packer.pyx | 4 ++-- 1 file 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 -- cgit v1.2.1