projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c840279
)
version.py: fix support for Python < 3.9
author
Kirill Isakov
<bootctl@gmail.com>
Sat, 4 Jun 2022 12:34:34 +0000
(18:34 +0600)
committer
Kirill Isakov
<bootctl@gmail.com>
Sat, 4 Jun 2022 12:35:09 +0000
(18:35 +0600)
version.py
patch
|
blob
|
history
diff --git
a/version.py
b/version.py
index
85f3b71
..
5617cae
100755
(executable)
--- 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().re
moveprefix("release-"
)
+version = result.stdout.strip().re
place("release-", "", 1
)
print(version)