Skip to content

Commit dc661d0

Browse files
authored
Merge pull request #2 from 311devs/msgpack_hooks_possibility
msgpack hooks possibility
2 parents 0255582 + f0b6e11 commit dc661d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tarantool/connection.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,13 @@ def __init__(self, host, port,
132132
self.call_16 = call_16
133133
self.connection_timeout = connection_timeout
134134
self.pack_default = pack_default
135-
self.unpack_hooks = {
135+
unpack_hooks = {
136136
"object_hook": unpack_object_hook,
137137
"list_hook": unpack_list_hook,
138138
"object_pairs_hook": unpack_object_pairs_hook,
139139
"ext_hook": unpack_ext_hook,
140140
}
141+
self.unpack_hooks = {k: v for (k, v) in unpack_hooks.items() if v is not None}
141142
if connect_now:
142143
self.connect()
143144

0 commit comments

Comments
 (0)