fix-up the the -> the

Signed-off-by: chentanjun <2799194073@qq.com>
This commit is contained in:
chentanjun 2019-09-01 22:51:47 +08:00
parent 8b615698ea
commit efbe0a3489
4 changed files with 5 additions and 5 deletions

View file

@ -39,7 +39,7 @@ Before running the tests, static metadata is first copied to temporary
directories and modified, as needed, by the tests.
The test modules typically spawn HTTP(S) servers that serve metadata and target
files for the the unit tests. The [map
files for the unit tests. The [map
file](https://github.com/theupdateframework/tuf/tree/develop/tests/repository_data)
specifies the location of the test repositories and other properties. For
specific targets and metadata provided by the tests repositories, please

View file

@ -792,7 +792,7 @@ def test_write_metadata_file(self):
repo_lib.write_metadata_file(root_signable, output_filename,
version_number, consistent_snapshot=True)
# Test if the the latest root.json points to the expected consistent file
# Test if the latest root.json points to the expected consistent file
# and consistent metadata do not all point to the same root.json
version_and_filename = str(version_number) + '.' + 'root.json'
second_version_output_file = os.path.join(temporary_directory, version_and_filename)

View file

@ -662,7 +662,7 @@ def test_3__update_metadata(self):
# because it has no signed metadata for itself.
DEFAULT_TIMESTAMP_FILELENGTH = tuf.settings.DEFAULT_TIMESTAMP_REQUIRED_LENGTH
# This is the the upper bound length for Targets metadata.
# This is the upper bound length for Targets metadata.
DEFAULT_TARGETS_FILELENGTH = tuf.settings.DEFAULT_TARGETS_REQUIRED_LENGTH
# Save the versioninfo of 'targets.json,' needed later when re-installing

View file

@ -217,7 +217,7 @@ def __init__(self, map_file):
# improperly formatted.
tuf.formats.MAPFILE_SCHEMA.check_match(self.map_file)
# Save the the "repositories" entry of the map file, with the following
# Save the "repositories" entry of the map file, with the following
# example format:
#
# "repositories": {
@ -1795,7 +1795,7 @@ def _update_metadata(self, metadata_role, upperbound_filelength, version=None):
# Finally, update the metadata and fileinfo stores, and rebuild the
# key and role info for the top-level roles if 'metadata_role' is root.
# Rebuilding the the key and role info is required if the newly-installed
# Rebuilding the key and role info is required if the newly-installed
# root metadata has revoked keys or updated any top-level role information.
logger.debug('Updated ' + repr(current_filepath) + '.')
self.metadata['previous'][metadata_role] = current_metadata_object