mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-08 02:40:09 +00:00
Unpacker's ext_hook fixed + tests
This commit is contained in:
parent
e9de6b7f39
commit
d850e56dd0
2 changed files with 26 additions and 2 deletions
|
|
@ -207,7 +207,7 @@ cdef class Unpacker(object):
|
|||
cdef object file_like_read
|
||||
cdef Py_ssize_t read_size
|
||||
# To maintain refcnt.
|
||||
cdef object object_hook, object_pairs_hook, list_hook
|
||||
cdef object object_hook, object_pairs_hook, list_hook, ext_hook
|
||||
cdef object encoding, unicode_errors
|
||||
cdef size_t max_buffer_size
|
||||
|
||||
|
|
@ -228,6 +228,7 @@ cdef class Unpacker(object):
|
|||
self.object_hook = object_hook
|
||||
self.object_pairs_hook = object_pairs_hook
|
||||
self.list_hook = list_hook
|
||||
self.ext_hook = ext_hook
|
||||
|
||||
self.file_like = file_like
|
||||
if file_like:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue