summaryrefslogtreecommitdiff
path: root/msgpack/_msgpack.pyx
diff options
context:
space:
mode:
authorSteeve Morin <steeve.morin@gmail.com>2012-02-16 17:15:04 +0100
committerSteeve Morin <steeve.morin@gmail.com>2012-02-16 17:15:04 +0100
commit5b878b6038ac7d8d180f359f728531e666717f94 (patch)
tree09175f32973ce5af7460706f532a6687746b9339 /msgpack/_msgpack.pyx
parentc2e297d5dd62965010bb559561815467af9cb450 (diff)
downloadmsgpack-python-5b878b6038ac7d8d180f359f728531e666717f94.tar.gz
Be greedier when checking for tuples or lists.
Diffstat (limited to 'msgpack/_msgpack.pyx')
-rw-r--r--msgpack/_msgpack.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/_msgpack.pyx b/msgpack/_msgpack.pyx
index 52464fb..7f369a8 100644
--- a/msgpack/_msgpack.pyx
+++ b/msgpack/_msgpack.pyx
@@ -136,7 +136,7 @@ cdef class Packer(object):
if ret != 0: break
ret = self._pack(v, nest_limit-1)
if ret != 0: break
- elif PySequence_Check(o):
+ elif PyTuple_Check(o) or PyList_Check(o):
ret = msgpack_pack_array(&self.pk, len(o))
if ret == 0:
for v in o: