From 83fed21f2fa70088607843661871b723fe77c84b Mon Sep 17 00:00:00 2001 From: Kirill Isakov Date: Sat, 4 Jun 2022 18:34:34 +0600 Subject: [PATCH] version.py: fix support for Python < 3.9 --- version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.20.1