python-tuf/examples
Martin Vrachev e3b267e2e0 Remove OrderedDict in favor of python3.7+ dict
After we drop support for python3.6 we can relly that dictionaries
preserve the insertion order:
https://docs.python.org/3.7/whatsnew/3.7.html

This means we can replace the usage of OrderedDict with a standard
dictionaries.

Something we have to keep in mind is that even thought the insertion
order is preserved the equality comparison for normal dicts is
insensitive for normal dicts compared to OrderedDict

For example:
>>> OrderedDict([(1,1), (2,2)]) == OrderedDict([(2,2), (1,1)])
False
>>> dict([(1,1), (2,2)]) == dict([(2,2), (1,1)])
True

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
2022-01-19 18:19:56 +02:00
..
client_example ngclient: Rename constructor arg 2021-12-15 13:22:24 +02:00
repo_example Remove OrderedDict in favor of python3.7+ dict 2022-01-19 18:19:56 +02:00
README.md docs: add examples to the RTD 2022-01-18 13:14:02 +01:00

Usage examples