Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

Commit 00a6fca

Browse files
committed
Make handlers.py work with modern PyMongo
sleepy.mongoose now requires pymongo >= 1.9
1 parent 75e9e4a commit 00a6fca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sleepymongoose/handlers.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from pymongo import connection, Connection, ASCENDING, DESCENDING
16-
from pymongo.son import SON
15+
from bson.son import SON
16+
from pymongo import Connection, ASCENDING, DESCENDING
1717
from pymongo.errors import ConnectionFailure, ConfigurationError, OperationFailure, AutoReconnect
1818
from bson import json_util
1919

@@ -157,7 +157,6 @@ def _connect(self, args, out, name = None, db = None, collection = None):
157157
if "server" in args:
158158
try:
159159
uri = args.getvalue('server')
160-
info = connection._parse_uri(uri)
161160
except Exception, e:
162161
print uri
163162
print e

0 commit comments

Comments
 (0)