urllib
has been split up in Python 3
. The urllib.urlencode()
function is now urllib.parse.urlencode()
, and the urllib.urlopen()
function is now urllib.request.urlopen()
so
a | b | c |
---|---|---|
Python2 | urllib.urlencode() | urllib.urlopen() |
Python3 | urllib.parse.urlencode() | urllib.request.urlopen() |