Since Python 3.7, dictionaries are ordered, rendering OrderedDict obsolete. Since Python 3.12, the representation of OrderedDict changes, making the following doctest fail.
|
>>> hjson.loads(text) |
|
OrderedDict([('foo', 'a'), ('bar', 1)]) |
Got: OrderedDict({'foo': 'a', 'bar': 1})
Since Python 3.7, dictionaries are ordered, rendering OrderedDict obsolete. Since Python 3.12, the representation of OrderedDict changes, making the following doctest fail.
hjson-py/hjson/__init__.py
Lines 10 to 11 in 9351a27