From e907b0f04354873316311072da572943abb6281a Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 26 Sep 2022 13:00:56 +0200 Subject: Modernize via pyupgrade MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- utils/gen-test-manifest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/gen-test-manifest.py') 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: {} '.format(sys.argv[0])) + print(f'Usage: {sys.argv[0]} ') sys.exit(1) gen_metamanifests(sys.argv[1], sys.argv[2].split()) -- cgit v1.2.3