summaryrefslogtreecommitdiffstats
path: root/Doc/library/urllib.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/urllib.rst')
-rw-r--r--Doc/library/urllib.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/urllib.rst b/Doc/library/urllib.rst
index 914351a..3d28c45 100644
--- a/Doc/library/urllib.rst
+++ b/Doc/library/urllib.rst
@@ -438,14 +438,14 @@ containing parameters::
>>> import urllib
>>> params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
>>> f = urllib.urlopen("http://www.musi-cal.com/cgi-bin/query?%s" % params)
- >>> print f.read()
+ >>> print(f.read())
The following example uses the ``POST`` method instead::
>>> import urllib
>>> params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
>>> f = urllib.urlopen("http://www.musi-cal.com/cgi-bin/query", params)
- >>> print f.read()
+ >>> print(f.read())
The following example uses an explicitly specified HTTP proxy, overriding
environment settings::