python-tuf/tuf/api
Jussi Kukkonen f8b714d167 Metadata API: Don't do equality comparisons on containers
Use either "if X is not None:" or a try-except instead of a "if X:".

I believe Targets.from_dict() was not really broken with previous code
but it looks suspicious and did fail the added test with a strange
exception: I expect the from_dict() methods to mainly fail with
KeyErrors, ValueErrors or AttributeErrors if file format structure
is incorrect.

Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
2021-05-16 10:48:59 +03:00
..
serialization Fix black docstring indentation errors 2021-04-27 14:08:24 +03:00
__init__.py tuf/api: Expose tuf.api as a package 2020-10-15 14:35:14 +01:00
metadata.py Metadata API: Don't do equality comparisons on containers 2021-05-16 10:48:59 +03:00
pylintrc Merge branch 'develop' into experimental-client 2021-05-12 17:07:22 +03:00