We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca87a7e commit a1317b6Copy full SHA for a1317b6
msgpack/_packer.pyx
@@ -135,15 +135,15 @@ cdef class Packer(object):
135
ret = msgpack_pack_false(&self.pk)
136
elif PyLong_Check(o):
137
# PyInt_Check(long) is True for Python 3.
138
- # Sow we should test long before int.
+ # So we should test long before int.
139
try:
140
if o > 0:
141
ullval = o
142
ret = msgpack_pack_unsigned_long_long(&self.pk, ullval)
143
else:
144
llval = o
145
ret = msgpack_pack_long_long(&self.pk, llval)
146
- except OverflowError, oe:
+ except OverflowError as oe:
147
if not default_used and self._default is not None:
148
o = self._default(o)
149
default_used = True
0 commit comments