summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-01-23 09:01:14 +0100
committerMichał Górny <mgorny@gentoo.org>2023-01-23 09:01:14 +0100
commitd17d1fa72e20411b901ab517fab9f2a0c510bec6 (patch)
treefa35b42c79945f606b75b7a666f6b0f9fdaaedbc
parentbe988f794577eac257e0730609c410493da9b790 (diff)
downloadgemato-d17d1fa72e20411b901ab517fab9f2a0c510bec6.tar.gz
utils: Fix pyflakes complaints
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rwxr-xr-xutils/fuzzy-hash-tester.py2
-rwxr-xr-xutils/gen_fast_manifest.py4
-rwxr-xr-xutils/gen_fast_metamanifest.py4
3 files changed, 2 insertions, 8 deletions
diff --git a/utils/fuzzy-hash-tester.py b/utils/fuzzy-hash-tester.py
index c96742b..d274685 100755
--- a/utils/fuzzy-hash-tester.py
+++ b/utils/fuzzy-hash-tester.py
@@ -9,8 +9,6 @@ import random
import subprocess
import sys
-import pyblake2
-
class ExternalToolHash:
def __init__(self, argv):
diff --git a/utils/gen_fast_manifest.py b/utils/gen_fast_manifest.py
index 002f8c5..70b0531 100755
--- a/utils/gen_fast_manifest.py
+++ b/utils/gen_fast_manifest.py
@@ -1,10 +1,8 @@
#!/usr/bin/env python
# Ultra-optimized Manifest writing.
-# (c) 2017-2022 Michał Górny
+# (c) 2017-2023 Michał Górny
# Licensed under the terms of 2-clause BSD license
-import errno
-import glob
import gzip
import hashlib
import os
diff --git a/utils/gen_fast_metamanifest.py b/utils/gen_fast_metamanifest.py
index 0d6922d..c5353d4 100755
--- a/utils/gen_fast_metamanifest.py
+++ b/utils/gen_fast_metamanifest.py
@@ -1,11 +1,10 @@
#!/usr/bin/env python
# Ultra-optimized Meta-Manifest writing.
-# (c) 2017-2022 Michał Górny
+# (c) 2017-2023 Michał Górny
# Licensed under the terms of 2-clause BSD license
import datetime
import glob
-import io
import multiprocessing
import os
import os.path
@@ -70,7 +69,6 @@ def make_toplevel(d, ts, pgp_key):
data = me + b'\n' + ts
if pgp_key is not None:
- cmd = []
gpg = os.environ.get('GNUPG', 'gpg')
p = subprocess.Popen([gpg, '--batch', '-u', pgp_key,
'--armor', '--clearsign'],