Kaydet (Commit) 06ad13ee authored tarafından Georg Brandl's avatar Georg Brandl

Fix function name: open -> urlopen.

üst beed47ec
...@@ -140,7 +140,7 @@ This is done as follows:: ...@@ -140,7 +140,7 @@ This is done as follows::
name=Somebody+Here&language=Python&location=Northampton name=Somebody+Here&language=Python&location=Northampton
>>> url = 'http://www.example.com/example.cgi' >>> url = 'http://www.example.com/example.cgi'
>>> full_url = url + '?' + url_values >>> full_url = url + '?' + url_values
>>> data = urllib.request.open(full_url) >>> data = urllib.request.urlopen(full_url)
Notice that the full URL is created by adding a ``?`` to the URL, followed by Notice that the full URL is created by adding a ``?`` to the URL, followed by
the encoded values. the encoded values.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment