mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 13:19:13 +00:00
Make code in plugins/modules/uv_python.py more pythonic
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
025cf018dc
commit
a02743fd76
1 changed files with 4 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue