summaryrefslogtreecommitdiff
path: root/utils/gen-test-manifest.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/gen-test-manifest.py')
-rwxr-xr-xutils/gen-test-manifest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/gen-test-manifest.py b/utils/gen-test-manifest.py
index b7c4530..33e2635 100755
--- a/utils/gen-test-manifest.py
+++ b/utils/gen-test-manifest.py
@@ -46,7 +46,7 @@ def write_manifest_entries_for_dir(manifest_file, topdir, hashes):
def gen_metamanifests(top_dir, hashes):
- with open(os.path.join(top_dir, 'profiles/categories'), 'r') as f:
+ with open(os.path.join(top_dir, 'profiles/categories')) as f:
categories = [x.strip() for x in f]
alldirs = []
@@ -73,7 +73,7 @@ def gen_metamanifests(top_dir, hashes):
if __name__ == '__main__':
if len(sys.argv) != 3:
- print('Usage: {} <rsync-path> <hashes>'.format(sys.argv[0]))
+ print(f'Usage: {sys.argv[0]} <rsync-path> <hashes>')
sys.exit(1)
gen_metamanifests(sys.argv[1], sys.argv[2].split())