From: Georg Brandl Date: Sat, 23 Jul 2011 06:04:40 +0000 (+0200) Subject: Fix function name: open -> urlopen. X-Git-Tag: v3.2.2rc1~82 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06ad13ee7c408d964d716e62600e4665ed912a54;p=thirdparty%2FPython%2Fcpython.git Fix function name: open -> urlopen. --- diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst index 110b6de3b63b..76286bdc273c 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.