diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-09-26 13:00:56 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-09-26 13:03:05 +0200 |
commit | e907b0f04354873316311072da572943abb6281a (patch) | |
tree | 1f8129299e812a3aa2fe5e1e9a9c823ce58772c7 /utils/gen-test-manifest.py | |
parent | 572da07948b921feb35af5b098f50af7d8dea99a (diff) | |
download | gemato-e907b0f04354873316311072da572943abb6281a.tar.gz |
Modernize via pyupgrade
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'utils/gen-test-manifest.py')
-rwxr-xr-x | utils/gen-test-manifest.py | 4 |
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()) |