summaryrefslogtreecommitdiffstats
path: root/Doc/howto/urllib2.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-07-23 06:06:33 (GMT)
committerGeorg Brandl <georg@python.org>2011-07-23 06:06:33 (GMT)
commitf364ce242d55321c399ae18e5c2bf07045be0088 (patch)
tree963efd6b172b17882d5155e6a4b288be92edd77b /Doc/howto/urllib2.rst
parent9553ea8a523a7a86cd0bdd46638930200fbc150b (diff)
downloadcpython-f364ce242d55321c399ae18e5c2bf07045be0088.zip
cpython-f364ce242d55321c399ae18e5c2bf07045be0088.tar.gz
cpython-f364ce242d55321c399ae18e5c2bf07045be0088.tar.bz2
Fix function name: open -> urlopen.
Diffstat (limited to 'Doc/howto/urllib2.rst')
-rw-r--r--Doc/howto/urllib2.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst
index e10a5a4..6c80c77 100644
--- a/Doc/howto/urllib2.rst
+++ b/Doc/howto/urllib2.rst
@@ -138,7 +138,7 @@ This is done as follows::
name=Somebody+Here&language=Python&location=Northampton
>>> url = 'http://www.example.com/example.cgi'
>>> full_url = url + '?' + url_values
- >>> data = urllib2.open(full_url)
+ >>> data = urllib2.urlopen(full_url)
Notice that the full URL is created by adding a ``?`` to the URL, followed by
the encoded values.