1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 21:29:19 +00:00

Use str instead of __str__

This commit is contained in:
Mariam Ahhttouche 2026-03-05 12:29:22 +01:00
parent 9f81b6e9a0
commit 61e4cfb72d

View file

@ -124,7 +124,7 @@ class UV:
try:
python_version = module.params["version"]
self.python_version = StrictVersion(python_version)
self.python_version_str = self.python_version.__str__()
self.python_version_str = str(self.python_version)
except ValueError:
self.module.fail_json(
msg="Unsupported version format. Valid version numbers consist of two or three dot-separated numeric components, \