summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-07-23 08:06:00 +0200
committerGeorg Brandl <georg@python.org>2011-07-23 08:06:00 +0200
commit1d1425992e84b9d8d1cf4eb09b0ba144368e31fd (patch)
treeb01e027cf407749fd5609e905b900fc1af4b2153 /Doc
parent352861c94450d5df81a43d374148cec67e86a2a9 (diff)
parent6b6969da29f84aea59bb6dbdc2e08d6bb50c15ca (diff)
downloadcpython-1d1425992e84b9d8d1cf4eb09b0ba144368e31fd.tar.gz
Merge 3.2 branch.
Diffstat (limited to 'Doc')
-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 110b6de3b6..76286bdc27 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.