summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorThomas Waldmann <tw@waldmann-edv.de>2022-02-27 19:31:33 +0100
committerThomas Waldmann <tw@waldmann-edv.de>2022-02-27 20:11:56 +0100
commitcbeef5645440bc6d0a0a73e74c708977255c93e1 (patch)
treec662a0ac029aeadde3fd6717aceafe781eb9efbf /scripts
parentd1bcea9e617523089c4938fcca8948ae24007ef6 (diff)
pyupgrade --py38-plus ./**/*.py
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/glibc_check.py6
-rw-r--r--scripts/py36-blake2.py1
2 files changed, 3 insertions, 4 deletions
diff --git a/scripts/glibc_check.py b/scripts/glibc_check.py
index 44fd25cd1..5f8344960 100755
--- a/scripts/glibc_check.py
+++ b/scripts/glibc_check.py
@@ -35,12 +35,12 @@ def main():
output = subprocess.check_output(objdump % filename, shell=True,
stderr=subprocess.STDOUT)
output = output.decode()
- versions = set(parse_version(match.group(1))
- for match in glibc_re.finditer(output))
+ versions = {parse_version(match.group(1))
+ for match in glibc_re.finditer(output)}
requires_glibc = max(versions)
overall_versions.add(requires_glibc)
if verbose:
- print("%s %s" % (filename, format_version(requires_glibc)))
+ print(f"{filename} {format_version(requires_glibc)}")
except subprocess.CalledProcessError:
if verbose:
print("%s errored." % filename)
diff --git a/scripts/py36-blake2.py b/scripts/py36-blake2.py
index 758a4f346..fff13b588 100644
--- a/scripts/py36-blake2.py
+++ b/scripts/py36-blake2.py
@@ -1,4 +1,3 @@
-
"""
This script checks compatibility of crypto.blake2b_256 against hashlib.blake2b in CPython 3.6.
"""