diff --git a/plugins/modules/dnf_versionlock.py b/plugins/modules/dnf_versionlock.py index b54062f1ea..ff3fe31eca 100644 --- a/plugins/modules/dnf_versionlock.py +++ b/plugins/modules/dnf_versionlock.py @@ -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']}",