move project metadata to pyproject.toml (#555)

also: replace flake8 by ruff.
This commit is contained in:
TW 2023-09-05 03:51:04 +02:00 committed by GitHub
parent 7b75b4f368
commit 423c6df265
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 57 additions and 54 deletions

View file

@ -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: