summaryrefslogtreecommitdiff
path: root/utils/gen_fast_manifest.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-26 13:00:56 +0200
committerMichał Górny <mgorny@gentoo.org>2022-09-26 13:03:05 +0200
commite907b0f04354873316311072da572943abb6281a (patch)
tree1f8129299e812a3aa2fe5e1e9a9c823ce58772c7 /utils/gen_fast_manifest.py
parent572da07948b921feb35af5b098f50af7d8dea99a (diff)
downloadgemato-e907b0f04354873316311072da572943abb6281a.tar.gz
Modernize via pyupgrade
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'utils/gen_fast_manifest.py')
-rwxr-xr-xutils/gen_fast_manifest.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/gen_fast_manifest.py b/utils/gen_fast_manifest.py
index d7c8c51..002f8c5 100755
--- a/utils/gen_fast_manifest.py
+++ b/utils/gen_fast_manifest.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python
-# vim:fileencoding=utf-8
# Ultra-optimized Manifest writing.
-# (c) 2017-2020 Michał Górny
+# (c) 2017-2022 Michał Górny
# Licensed under the terms of 2-clause BSD license
import errno
@@ -110,7 +109,7 @@ def gen_manifest(top_dir):
if __name__ == '__main__':
if len(sys.argv) < 2:
- print('Usage: {} <directory>...'.format(sys.argv[0]))
+ print(f'Usage: {sys.argv[0]} <directory>...')
sys.exit(1)
for path in sys.argv[1:]: