Skip to content

Commit 097e7e7

Browse files
elitanbehackett
authored andcommitted
added import for MongoClient
1 parent 0edd1cd commit 097e7e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/examples/authentication.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ If your username or password contains special characters (e.g. '/', ' ',
1212
or '@') you must ``%xx`` escape them for use in the MongoDB URI. PyMongo
1313
uses :meth:`~urllib.unquote_plus` to decode them. For example::
1414

15+
>>> from pymongo import MongoClient
1516
>>> import urllib
1617
>>> password = urllib.quote_plus('pass/word')
1718
>>> password

0 commit comments

Comments
 (0)