From efbe0a3489a7fd5dc150ea4436ad0bcbb7a24155 Mon Sep 17 00:00:00 2001 From: chentanjun <2799194073@qq.com> Date: Sun, 1 Sep 2019 22:51:47 +0800 Subject: [PATCH] fix-up the the -> the Signed-off-by: chentanjun <2799194073@qq.com> --- tests/repository_data/README.md | 2 +- tests/test_repository_lib.py | 2 +- tests/test_updater.py | 2 +- tuf/client/updater.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/repository_data/README.md b/tests/repository_data/README.md index d214100f..50ceb011 100644 --- a/tests/repository_data/README.md +++ b/tests/repository_data/README.md @@ -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 diff --git a/tests/test_repository_lib.py b/tests/test_repository_lib.py index 6eb4faa7..0d6b7a5a 100755 --- a/tests/test_repository_lib.py +++ b/tests/test_repository_lib.py @@ -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) diff --git a/tests/test_updater.py b/tests/test_updater.py index 56ee9fa1..4b9c5fc2 100644 --- a/tests/test_updater.py +++ b/tests/test_updater.py @@ -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 diff --git a/tuf/client/updater.py b/tuf/client/updater.py index 7f8f73f8..5ecea01f 100755 --- a/tuf/client/updater.py +++ b/tuf/client/updater.py @@ -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