8000 refactor · sacherjj/msgpack-python@a1317b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit a1317b6

Browse files
committed
refactor
1 parent ca87a7e commit a1317b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

msgpack/_packer.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ cdef class Packer(object):
135135
ret = msgpack_pack_false(&self.pk)
136136
elif PyLong_Check(o):
137137
# PyInt_Check(long) is True for Python 3.
138-
# Sow we should test long before int.
138+
# So we should test long before int.
139139
try:
140140
if o > 0:
141141
ullval = o
142142
ret = msgpack_pack_unsigned_long_long(&self.pk, ullval)
143143
else:
144144
llval = o
145145
ret = msgpack_pack_long_long(&self.pk, llval)
146-
except OverflowError, oe:
146+
except OverflowError as oe:
147147
if not default_used and self._default is not None:
148148
o = self._default(o)
149149
default_used = True

0 commit comments

Comments
 (0)
0