Fix decode error for Python 3

This commit is contained in:
Anton Ovchinnikov 2014-09-01 16:51:24 +02:00
parent f76515ccce
commit 8b79fb6797
1 changed files with 2 additions and 3 deletions

View File

@ -42,7 +42,7 @@ def call_git_describe():
stdout=PIPE, stderr=PIPE)
p.stderr.close()
line = p.stdout.readlines()[0]
return line.strip()
return line.strip().decode('utf-8')
except:
return None
@ -96,8 +96,7 @@ def get_git_version():
write_release_version(version)
# Finally, return the current version.
return version[1:].decode('utf-8')
return version[1:]
if __name__ == "__main__":