in Python 3 the urllib.quote has been renamed to urllib.parse.quote.
Also in Python 3 all strings are unicode strings (the byte strings are called bytes).
Example:
from urllib.parse import quote
print(quote('รณ'))
# output: %C3%B3
in Python 3 the urllib.quote has been renamed to urllib.parse.quote.
Also in Python 3 all strings are unicode strings (the byte strings are called bytes).
Example:
from urllib.parse import quote
print(quote('รณ'))
# output: %C3%B3