Skip to content

Commit 5c515d1

Browse files
authored
Merge pull request #2360 from tisnik/lcore-3121-minor-cleanup
LCORE-3121: Minor cleanup
2 parents ee1abdf + c4714e5 commit 5c515d1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/konflux_resolve.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ def parse_version(
6767
version_str = version_str.strip()
6868
if "+" in version_str:
6969
version_str = version_str.split("+", 1)[0]
70-
if version_str.endswith(".*"):
71-
version_str = version_str[:-2]
70+
version_str = version_str.removesuffix(".*")
7271
m = _VERSION_RE.match(version_str)
7372
if m is None:
7473
raise ValueError(f"Cannot parse version: {version_str!r}")

0 commit comments

Comments
 (0)