@@ -131,7 +131,7 @@ cdef inline int get_data_from_buffer(object obj,
131131
132132
133133def unpackb (object packed , *, object object_hook = None , object list_hook = None ,
134- bint use_list = True , bint raw = False , bint strict_map_key = False ,
134+ bint use_list = True , bint raw = False , bint strict_map_key = True ,
135135 unicode_errors = None ,
136136 object_pairs_hook = None , ext_hook = ExtType,
137137 Py_ssize_t max_str_len = - 1 ,
@@ -221,9 +221,7 @@ cdef class Unpacker(object):
221221 Otherwise, unpack to Python str by decoding with UTF-8 encoding (default).
222222
223223 :param bool strict_map_key:
224- If true, only str or bytes are accepted for map (dict) keys.
225- It's False by default for backward-compatibility.
226- But it will be True from msgpack 1.0.
224+ If true (default), only str or bytes are accepted for map (dict) keys.
227225
228226 :param callable object_hook:
229227 When specified, it should be callable.
@@ -305,7 +303,7 @@ cdef class Unpacker(object):
305303 self .buf = NULL
306304
307305 def __init__ (self , file_like = None , *, Py_ssize_t read_size = 0 ,
308- bint use_list = True , bint raw = False , bint strict_map_key = False ,
306+ bint use_list = True , bint raw = False , bint strict_map_key = True ,
309307 object object_hook = None , object object_pairs_hook = None , object list_hook = None ,
310308 unicode_errors = None , Py_ssize_t max_buffer_size = 0 ,
311309 object ext_hook = ExtType,
0 commit comments