From a02743fd769d67e65a89f93e102add3b89b696da Mon Sep 17 00:00:00 2001 From: Mariam Ahhttouche Date: Tue, 10 Mar 2026 15:01:47 +0000 Subject: [PATCH] Make code in plugins/modules/uv_python.py more pythonic Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> --- plugins/modules/uv_python.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/modules/uv_python.py b/plugins/modules/uv_python.py index c5245e868f..960f0c9882 100644 --- a/plugins/modules/uv_python.py +++ b/plugins/modules/uv_python.py @@ -123,8 +123,10 @@ class UV: self.python_version_str = str(self.python_version) except (ValueError, AttributeError): self.module.fail_json( - msg="Unsupported version format. Valid version numbers consist of two or three dot-separated numeric components, \ - with an optional 'pre-release' tag on the end (for example 3.12, 3.12.3, 3.15.0a5) are supported in this release." + msg=( + "Unsupported version format. Valid version numbers consist of two or three dot-separated numeric components" + " with an optional 'pre-release' tag on the end (for example 3.12, 3.12.3, 3.15.0a5) are supported in this release." + ) ) def _ensure_min_uv_version(self):