diff options
author | Thomas Waldmann <tw@waldmann-edv.de> | 2022-02-27 19:31:33 +0100 |
---|---|---|
committer | Thomas Waldmann <tw@waldmann-edv.de> | 2022-02-27 20:11:56 +0100 |
commit | cbeef5645440bc6d0a0a73e74c708977255c93e1 (patch) | |
tree | c662a0ac029aeadde3fd6717aceafe781eb9efbf /scripts | |
parent | d1bcea9e617523089c4938fcca8948ae24007ef6 (diff) |
pyupgrade --py38-plus ./**/*.py
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/glibc_check.py | 6 | ||||
-rw-r--r-- | scripts/py36-blake2.py | 1 |
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. """ |