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

index e10a5a4ffae42d5980f883b2547f3e3f7ceb4821..6c80c779a38fca179388e82b9a07936b78bd2621 100644 (file)
@@ -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.