dnf_versionlock: docs and comments for Python < 3.6 (#10984)

This commit is contained in:
Alexei Znamensky
2025-10-26 21:23:58 +13:00
committed by GitHub
parent 39291d3c60
commit cf663c6e95

View File

@@ -59,7 +59,6 @@ notes:
far we have to work with a best guess as close as possible to the behaviour inferred from its code.
- For most of cases where you want to lock and unlock specific versions of a package, this works fairly well.
- Does not work with C(dnf5).
- This module requires Python 3.6 or greater to run, which should not be a problem for most systems that use C(dnf).
requirements:
- dnf
- dnf-plugin-versionlock
@@ -177,7 +176,7 @@ def match(entry, pattern):
m = NEVRA_RE.match(entry)
if not m:
return False
# indexing a match object with [] is a Python 3.6+ construct
for name in (
f"{m['name']}",
f"{m['name']}.{m['arch']}",