mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-11-02 18:40:55 +00:00
Fix bug come from previous commit
This commit is contained in:
parent
35a4d612c9
commit
bb93f093b6
1 changed files with 2 additions and 1 deletions
|
|
@ -311,8 +311,9 @@ cdef class Unpacker(object):
|
|||
self.fill_buffer()
|
||||
ret = template_execute(&self.ctx, self.buf, self.buf_tail, &self.buf_head)
|
||||
if ret == 1:
|
||||
o = template_data(&self.ctx)
|
||||
template_init(&self.ctx)
|
||||
return template_data(&self.ctx)
|
||||
return o
|
||||
elif ret == 0:
|
||||
if self.file_like is not None:
|
||||
return self.unpack()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue