versioning: Fix comparision of bytes and text
This commit is contained in:
parent
97c6b8812d
commit
d0e4e8e35d
@ -22,6 +22,6 @@ def get_git_version():
|
|||||||
if process.wait() != 0:
|
if process.wait() != 0:
|
||||||
raise EnvironmentError('Execution of "git describe" failed')
|
raise EnvironmentError('Execution of "git describe" failed')
|
||||||
version = process.stdout.read().strip()
|
version = process.stdout.read().strip()
|
||||||
if version.startswith('v'):
|
if version.startswith(b'v'):
|
||||||
version = version[1:]
|
version = version[1:]
|
||||||
return version
|
return version
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user