diff --git a/asyncio_mongo/database.py b/asyncio_mongo/database.py index 653c43e..c934528 100644 --- a/asyncio_mongo/database.py +++ b/asyncio_mongo/database.py @@ -18,6 +18,7 @@ from asyncio_mongo._pymongo import helpers from asyncio_mongo.collection import Collection from asyncio import coroutine from asyncio_mongo.exceptions import ErrorReply +from pymongo import auth class Database(object): @@ -100,7 +101,7 @@ class Database(object): @coroutine def authenticate_with_nonce(self, result, name, password): nonce = result['nonce'] - key = helpers._auth_key(nonce, name, password) + key = auth._auth_key(nonce, name, password) # hacky because order matters auth_command = SON(authenticate=1) diff --git a/setup.py b/setup.py index ebe647a..168675c 100755 --- a/setup.py +++ b/setup.py @@ -93,7 +93,7 @@ else: setup( name="asyncio_mongo", - version="0.2.1", + version="0.2.2", description="Asynchronous Python 3.3+ driver for MongoDB ", author="Alexandre Fiori, Don Brown", author_email="mrdon@twdata.org",