diff options
author | methane <songofacandy@gmail.com> | 2012-02-16 11:01:25 -0800 |
---|---|---|
committer | methane <songofacandy@gmail.com> | 2012-02-16 11:01:25 -0800 |
commit | 3a472b1624479ec6a196ac654137dbadc14761a9 (patch) | |
tree | 09175f32973ce5af7460706f532a6687746b9339 | |
parent | c2e297d5dd62965010bb559561815467af9cb450 (diff) | |
parent | 5b878b6038ac7d8d180f359f728531e666717f94 (diff) | |
download | msgpack-python-3a472b1624479ec6a196ac654137dbadc14761a9.tar.gz |
Merge pull request #6 from steeve/patch-2
Be greedier when checking for tuples or lists.
-rw-r--r-- | msgpack/_msgpack.pyx | 2 |
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: |