I have tried to follow the documentation but was not able to use urlparse.parse.quote_plus()
in Python 3
:
from urllib.parse import urlparse
params = urlparse.parse.quote_plus({'username': 'administrator', 'password': 'xyz'})
I get
AttributeError: 'function' object has no attribute 'parse'