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

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


http://hg.python.org/cpython/rev/a24bd2bf4adb
changeset:   71469:a24bd2bf4adb
branch:      2.7
parent:      71464:8d560f5d40d1
user:        Georg Brandl <georg at python.org>
date:        Sat Jul 23 08:06:33 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
@@ -138,7 +138,7 @@
     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.

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


More information about the Python-checkins mailing list