Fix moved auth method

This commit is contained in:
Don Brown
2014-02-18 00:14:47 -07:00
parent b9dcf43cf4
commit 6f5876469f
2 changed files with 3 additions and 2 deletions

View File

@@ -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)

View File

@@ -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 <http://www.mongodb.org>",
author="Alexandre Fiori, Don Brown",
author_email="mrdon@twdata.org",