summaryrefslogtreecommitdiff
path: root/msgpack/fallback.py
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-12-06 22:23:15 +0900
committerGitHub <noreply@github.com>2019-12-06 22:23:15 +0900
commitd8e3cf0563989a660398318a7c788645124e1d8b (patch)
treebd4db6fa691dd01930e751570bbddb559db1302a /msgpack/fallback.py
parent0fc0eb2f16fcc7d0271792f93a90af389f66dafb (diff)
downloadmsgpack-python-d8e3cf0563989a660398318a7c788645124e1d8b.tar.gz
Make strict_map_key default to True (#392)
Diffstat (limited to 'msgpack/fallback.py')
-rw-r--r--msgpack/fallback.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/msgpack/fallback.py b/msgpack/fallback.py
index 85a711b..7df92f5 100644
--- a/msgpack/fallback.py
+++ b/msgpack/fallback.py
@@ -175,9 +175,7 @@ class Unpacker(object):
Otherwise, unpack to Python str by decoding with UTF-8 encoding (default).
:param bool strict_map_key:
- If true, only str or bytes are accepted for map (dict) keys.
- It's False by default for backward-compatibility.
- But it will be True from msgpack 1.0.
+ If true (default), only str or bytes are accepted for map (dict) keys.
:param callable object_hook:
When specified, it should be callable.
@@ -249,7 +247,7 @@ class Unpacker(object):
read_size=0,
use_list=True,
raw=False,
- strict_map_key=False,
+ strict_map_key=True,
object_hook=None,
object_pairs_hook=None,
list_hook=None,