Fix function name: open -> urlopen.

This commit is contained in:
Georg Brandl 2011-07-23 08:06:33 +02:00
parent 9553ea8a52
commit f364ce242d
1 changed files with 1 additions and 1 deletions

View 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.