diff --git a/doc/examples/authentication.rst b/doc/examples/authentication.rst index a984d17fc0..43fc73e2a1 100644 --- a/doc/examples/authentication.rst +++ b/doc/examples/authentication.rst @@ -15,10 +15,10 @@ Username and password must be percent-escaped with >>> from pymongo import MongoClient >>> import urllib.parse - >>> username = urllib.parse.quote_plus('user') + >>> username = urllib.parse.quote('user') >>> username 'user' - >>> password = urllib.parse.quote_plus('pass/word') + >>> password = urllib.parse.quote('pass/word') >>> password 'pass%2Fword' >>> MongoClient('mongodb://%s:%s@127.0.0.1' % (username, password))