fix-up tuf/ typo

Signed-off-by: chentanjun <2799194073@qq.com>
This commit is contained in:
chentanjun 2019-09-04 23:56:04 +08:00
parent 0dc1b0dbd8
commit 2c149a8bf9
2 changed files with 2 additions and 2 deletions

View file

@ -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>

View file

@ -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)