[Python-checkins] cpython (3.2): Fix function name: open -> urlopen.

georg.brandl python-checkins at python.org
Sat Jul 23 08:05:50 CEST 2011


http://hg.python.org/cpython/rev/b28cb14edf89
changeset:   71467:b28cb14edf89
branch:      3.2
parent:      71461:9c7f9d5841ff
user:        Georg Brandl <georg at python.org>
date:        Sat Jul 23 08:04:40 2011 +0200
summary:
  Fix function name: open -> urlopen.

files:
  Doc/howto/urllib2.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst
--- a/Doc/howto/urllib2.rst
+++ b/Doc/howto/urllib2.rst
@@ -140,7 +140,7 @@
     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.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list