Skip to content

Commit

Permalink
version.py: fix support for Python < 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
hg committed Jun 4, 2022
1 parent c840279 commit 83fed21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
]

result = subp.run(cmd, stdout=subp.PIPE, encoding="utf-8", check=True)
version = result.stdout.strip().removeprefix("release-")
version = result.stdout.strip().replace("release-", "", 1)
print(version)

0 comments on commit 83fed21

Please sign in to comment.