From cf663c6e9573498e1ec912125a46277de6f51d30 Mon Sep 17 00:00:00 2001 From: Alexei Znamensky <103110+russoz@users.noreply.github.com> Date: Sun, 26 Oct 2025 21:23:58 +1300 Subject: [PATCH] dnf_versionlock: docs and comments for Python < 3.6 (#10984) --- plugins/modules/dnf_versionlock.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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']}",