From: Kirill Isakov Date: Sat, 4 Jun 2022 12:34:34 +0000 (+0600) Subject: version.py: fix support for Python < 3.9 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=83fed21f2fa70088607843661871b723fe77c84b;p=tinc version.py: fix support for Python < 3.9 --- diff --git a/version.py b/version.py index 85f3b713..5617cae6 100755 --- a/version.py +++ b/version.py @@ -20,5 +20,5 @@ cmd = [ ] 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)