Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyMongo compatibility #26

Closed
AndrewCEmil opened this issue May 31, 2013 · 1 comment
Closed

PyMongo compatibility #26

AndrewCEmil opened this issue May 31, 2013 · 1 comment

Comments

@AndrewCEmil
Copy link

To support older and newer versions of PyMongo, code that looks like this:

import pymongo
...
conn = pymongo.Connection(<options>)

should change to:

try:
    from pymongo import MongoClient as Connection
except ImportError:
    from pymongo import Connection
...
conn = Connection(<options>)
@tjj5036 tjj5036 closed this as completed Jun 25, 2013
@tjj5036
Copy link
Contributor

tjj5036 commented Jul 15, 2013

This was largely addressed in 215b1f2 although another commit has a fix where one import was neglected.

lnader pushed a commit to lnader/mongo-connector that referenced this issue Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants