python-tuf/tuf
Joshua Lock 02416e3376 updater: more optimal file length checking
Rather than read to the end of the file in order to determin its size, use
the whence value of seek() to move the file object's position to the end
of the file, then the tell() method of the file object to read the current
position in bytes.

Co-authored-by: Jussi Kukkonen <jkukkonen@vmware.com>
Signed-off-by: Joshua Lock <jlock@vmware.com>
2020-11-11 15:53:07 +00:00
..
api Disable an instance of too-many-arguments error 2020-10-15 14:35:14 +01:00
client updater: more optimal file length checking 2020-11-11 15:53:07 +00:00
scripts repo: make colorama a soft dependency 2020-10-20 15:23:39 +01:00
__init__.py Prepare 0.15.0 release 2020-10-21 11:42:21 +01:00
ATTACKS.md fix-up the document spelling mistake 2019-08-27 14:41:24 +08:00
developer_tool.py Log warning on UnsignedMetadataError in repository_lib 2020-10-02 16:05:11 +03:00
download.py Merge pull request #1145 from jku/silence-errors-to-be-raised 2020-09-22 13:42:27 +01:00
exceptions.py Add MissingLocalRepositoryError 2020-10-12 15:23:15 +03:00
formats.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
keydb.py Remove uses of keyid_hash_algorithms 2020-09-09 10:51:46 +01:00
log.py log: Close the file handler when it's removed 2020-08-10 16:11:33 +03:00
mirrors.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
README-developer-tools.md Remove or edit remaining instances of 'restricted paths' 2018-01-19 14:20:38 -05:00
README.md Link to CLI.md from getting started and readme docs 2018-02-06 17:00:24 -05:00
repository_lib.py Remove iso8601 dependency 2020-10-13 20:06:14 +03:00
repository_tool.py Remove iso8601 dependency 2020-10-13 20:06:14 +03:00
roledb.py Add TOP_LEVEL_ROLES as a global variable 2020-06-29 13:55:45 +03:00
settings.py Port to new securesystemslib w abstract filesystem 2020-05-12 22:16:50 +01:00
sig.py sig: Remove iso8601 logger mentions 2020-10-13 12:11:37 +03:00
unittest_toolbox.py Rename license files in modules 2018-02-05 11:31:19 -05:00