summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-07-23 06:04:40 (GMT)
committerGeorg Brandl <georg@python.org>2011-07-23 06:04:40 (GMT)
commit06ad13ee7c408d964d716e62600e4665ed912a54 (patch)
tree6066dc440765e4ca09af731ba045c26edad924de /Doc/howto
parentbeed47ec0e2f279404dc61656a1126402e88fe18 (diff)
downloadcpython-06ad13ee7c408d964d716e62600e4665ed912a54.zip
cpython-06ad13ee7c408d964d716e62600e4665ed912a54.tar.gz
cpython-06ad13ee7c408d964d716e62600e4665ed912a54.tar.bz2
Fix function name: open -> urlopen.
Diffstat (limited to 'Doc/howto')
-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 110b6de..76286bd 100644
--- a/Doc/howto/urllib2.rst
+++ b/Doc/howto/urllib2.rst
@@ -140,7 +140,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 = 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
the encoded values.