There was an error while loading. Please reload this page.
1 parent 326b710 commit 28ed110Copy full SHA for 28ed110
pymongo/__init__.py
@@ -94,8 +94,8 @@ class ReadPreference:
94
version_tuple = (2, 1, 1, '+')
95
96
def get_version_string():
97
- if version_tuple[-1] == '+':
98
- return '.'.join(map(str, version_tuple[:-1])) + '+'
+ if isinstance(version_tuple[-1], basestring):
+ return '.'.join(map(str, version_tuple[:-1])) + version_tuple[-1]
99
return '.'.join(map(str, version_tuple))
100
101
version = get_version_string()
0 commit comments