Skip to content

Commit

Permalink
change get_version to adhere to PEP 440
Browse files Browse the repository at this point in the history
  • Loading branch information
PH111P committed May 19, 2022
1 parent 567e2c9 commit 3555dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powerline/version.py
Expand Up @@ -8,7 +8,7 @@

def get_version():
try:
return __version__ + '.dev9999+git.' + str(subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip())
return __version__ + 'b' + subprocess.check_output(['git', 'rev-list', '--count', __version__ + '..HEAD']).strip().decode()
except Exception:
print_exc()
return __version__
Expand Down

0 comments on commit 3555dc9

Please sign in to comment.