Update utils.py

This commit is contained in:
Jakub Roztocil 2021-10-02 16:43:29 +02:00 committed by GitHub
parent 2423f893e5
commit 4ef31ecf71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,9 +16,7 @@ Items = List[Item]
class JsonDictPreservingDuplicateKeys(OrderedDict):
"""A specialized JSON dict preserving duplicate keys.
"""
"""A specialized JSON dict preserving duplicate keys."""
# Python versions prior to 3.8 suffer from an issue with multiple keys with the same name.
# `json.dumps(obj, indent=N, sort_keys=True)` will output sorted keys when they are unique, and