Skip to content

Commit

Permalink
Small fix in version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jasper@ilogue committed May 19, 2012
1 parent ef1d767 commit a2dd4df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions version.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ def get_git_version(abbrev=4):

def pep386adapt(version):
# adapt git-describe version to be in line with PEP 386
version = str(version)
if '-' in version:
parts = version.split('-')
print(version)
parts[-2] = 'post'+parts[-2]
version = '.'.join(parts[:-1])
return version


if __name__ == "__main__":
print get_git_version()
print(get_git_version())

0 comments on commit a2dd4df

Please sign in to comment.