diff options
| author | Steeve Morin <steeve.morin@gmail.com> | 2012-02-16 17:15:04 +0100 |
|---|---|---|
| committer | Steeve Morin <steeve.morin@gmail.com> | 2012-02-16 17:15:04 +0100 |
| commit | 5b878b6038ac7d8d180f359f728531e666717f94 (patch) | |
| tree | 09175f32973ce5af7460706f532a6687746b9339 /msgpack | |
| parent | c2e297d5dd62965010bb559561815467af9cb450 (diff) | |
| download | msgpack-python-5b878b6038ac7d8d180f359f728531e666717f94.tar.gz | |
Be greedier when checking for tuples or lists.
Diffstat (limited to 'msgpack')
| -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: |
