@@ -131,7 +131,7 @@ cdef inline int get_data_from_buffer(object obj,
131
131
132
132
133
133
def 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 ,
135
135
unicode_errors = None ,
136
136
object_pairs_hook = None , ext_hook = ExtType,
137
137
Py_ssize_t max_str_len = - 1 ,
@@ -221,9 +221,7 @@ cdef class Unpacker(object):
221
221
Otherwise, unpack to Python str by decoding with UTF-8 encoding (default).
222
222
223
223
: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.
227
225
228
226
:param callable object_hook:
229
227
When specified, it should be callable.
@@ -305,7 +303,7 @@ cdef class Unpacker(object):
305
303
self .buf = NULL
306
304
307
305
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 ,
309
307
object object_hook = None , object object_pairs_hook = None , object list_hook = None ,
310
308
unicode_errors = None , Py_ssize_t max_buffer_size = 0 ,
311
309
object ext_hook = ExtType,
0 commit comments