Skip to content
Browse files

make sure a version is always returned by pep386adapt

Change-Id: I5a746392e745a63ee04121efe15c6bc113a516d8
Reviewed-on: http://review.couchbase.org/19254
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Benjamin Young <benjamin@couchbase.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
  • Loading branch information...
1 parent f0f2159 commit b23745b3cdc500f75d17e8173bdb0ae765fa37f1 @BigBlueHat BigBlueHat committed with BigBlueHat Aug 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 version.py
View
3 version.py
@@ -111,7 +111,8 @@ def pep386adapt(version):
parts[-2] = 'post' + parts[-2]
version = '.'.join(parts[:-1])
return version
-
+ else:
+ return version
if __name__ == "__main__":
print get_git_version()

0 comments on commit b23745b

Please sign in to comment.
Something went wrong with that request. Please try again.