8000 Accept ext_hook for unpack() by emulbreh · Pull Request #143 · msgpack/msgpack-python · GitHub
[go: up one dir, main page]

Skip to content

Accept ext_hook for unpack() #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 23, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions msgpack/_unpacker.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def unpackb(object packed, object object_hook=None, object list_hook=None,

def unpack(object stream, object object_hook=None, object list_hook=None,
bint use_list=1, encoding=None, unicode_errors="strict",
object_pairs_hook=None,
object_pairs_hook=None, ext_hook=ExtType
):
"""
Unpack an object from `stream`.
Expand All @@ -158,7 +158,7 @@ def unpack(object stream, object object_hook=None, object list_hook=None,
"""
return unpackb(stream.read(), use_list=use_list,
object_hook=object_hook, object_pairs_hook=object_pairs_hook, list_hook=list_hook,
encoding=encoding, unicode_errors=unicode_errors,
encoding=encoding, unicode_errors=unicode_errors, ext_hook=ext_hook
)


Expand Down
0