]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF patch #892821: example for urllib2 has SyntaxError
authorRaymond Hettinger <python@rcn.com>
Sun, 8 Feb 2004 20:26:17 +0000 (20:26 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 8 Feb 2004 20:26:17 +0000 (20:26 +0000)
(Contributed by George Yoshida.)

Doc/lib/liburllib2.tex

index 3f8ff3ab169b5a038f013c1b8f887f34320b98bd..2320b70fa01555ff263960ab13c5602e3de829af 100644 (file)
@@ -651,6 +651,5 @@ The code for the sample CGI used in the above example is:
 #!/usr/bin/env python
 import sys
 data = sys.stdin.read()
-print 'Content-type: text-plain\n\nGot Data: "%s"' %
-data
+print 'Content-type: text-plain\n\nGot Data: "%s"' % data
 \end{verbatim}