mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-26 23:24:10 +00:00
move project metadata to pyproject.toml (#555)
also: replace flake8 by ruff.
This commit is contained in:
parent
7b75b4f368
commit
423c6df265
14 changed files with 57 additions and 54 deletions
|
|
@ -530,7 +530,7 @@ class Unpacker:
|
|||
key = self._unpack(EX_CONSTRUCT)
|
||||
if self._strict_map_key and type(key) not in (str, bytes):
|
||||
raise ValueError("%s is not allowed for map key" % str(type(key)))
|
||||
if type(key) is str:
|
||||
if isinstance(key, str):
|
||||
key = sys.intern(key)
|
||||
ret[key] = self._unpack(EX_CONSTRUCT)
|
||||
if self._object_hook is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue