Permalink
Browse files

Support different pre/post release tags.

  • Loading branch information...
behackett committed Apr 23, 2012
1 parent 326b710 commit 28ed1109572affe2ea0f1d045fcd9ad64f27c38d
Showing with 2 additions and 2 deletions.
  1. +2 −2 pymongo/__init__.py
View
@@ -94,8 +94,8 @@ class ReadPreference:
version_tuple = (2, 1, 1, '+')
def get_version_string():
- if version_tuple[-1] == '+':
- return '.'.join(map(str, version_tuple[:-1])) + '+'
+ if isinstance(version_tuple[-1], basestring):
+ return '.'.join(map(str, version_tuple[:-1])) + version_tuple[-1]
return '.'.join(map(str, version_tuple))
version = get_version_string()

0 comments on commit 28ed110

Please sign in to comment.