Skip to content

Commit

Permalink
[fix] Fixed non-compliant get_version() output
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Nov 23, 2023
1 parent 850fb38 commit 418ccca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions netdiff/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ def get_version():
if VERSION[3:] == ('alpha', 0):
version = '%s pre-alpha' % version
else:
if VERSION[3] != 'final':
version = '%s %s' % (version, VERSION[3])
try:
rev = VERSION[4]
except IndexError:
rev = 0
version = '%s%s%s' % (version, VERSION[3][0:1], rev)
return version

0 comments on commit 418ccca

Please sign in to comment.