mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
fix-up tuf/ typo
Signed-off-by: chentanjun <2799194073@qq.com>
This commit is contained in:
parent
0dc1b0dbd8
commit
2c149a8bf9
2 changed files with 2 additions and 2 deletions
|
|
@ -556,7 +556,7 @@ def _check_downloaded_length(total_downloaded, required_length,
|
|||
required_length.
|
||||
|
||||
tuf.exceptions.SlowRetrievalError, if the total downloaded was
|
||||
done in in less than the acceptable download speed (as set in
|
||||
done in less than the acceptable download speed (as set in
|
||||
tuf.settings.py).
|
||||
|
||||
<Returns>
|
||||
|
|
|
|||
|
|
@ -726,7 +726,7 @@ def _log_warning_if_expires_soon(rolename, expires_iso8601_timestamp,
|
|||
"""
|
||||
|
||||
# Metadata stores expiration datetimes in ISO8601 format. Convert to
|
||||
# unix timestamp, subtract from from current time.time() (also in POSIX time)
|
||||
# unix timestamp, subtract from current time.time() (also in POSIX time)
|
||||
# and compare against 'seconds_remaining_to_warn'. Log a warning message
|
||||
# to console if 'rolename' expires soon.
|
||||
datetime_object = iso8601.parse_date(expires_iso8601_timestamp)
|
||||
|
|
|
|||
Loading…
Reference in a new issue