This commit is contained in:
Stefan Wojcik 2017-02-26 12:11:21 -05:00
parent 7d0b533920
commit e20a34857d

View File

@ -30,7 +30,7 @@ def get_mongodb_version():
"""Return the version tuple of the MongoDB server that the default """Return the version tuple of the MongoDB server that the default
connection is connected to. connection is connected to.
""" """
return get_connection().server_info()['versionArray'] return tuple(get_connection().server_info()['versionArray'])
def _decorated_with_ver_requirement(func, ver_tuple): def _decorated_with_ver_requirement(func, ver_tuple):
"""Return a given function decorated with the version requirement """Return a given function decorated with the version requirement