]> granicus.if.org Git - python/commitdiff
Fix function name: open -> urlopen.
authorGeorg Brandl <georg@python.org>
Sat, 23 Jul 2011 06:04:40 +0000 (08:04 +0200)
committerGeorg Brandl <georg@python.org>
Sat, 23 Jul 2011 06:04:40 +0000 (08:04 +0200)
Doc/howto/urllib2.rst

index 110b6de3b63bde86657ffa47725fd3be2c906095..76286bdc273cedc56d7c67b24fd37bed7f239684 100644 (file)
@@ -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.