Unpacker's ext_hook fixed + tests

This commit is contained in:
Alexey Popravka 2014-03-24 15:31:06 +02:00
parent e9de6b7f39
commit d850e56dd0
2 changed files with 26 additions and 2 deletions

View file

@ -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: