]> granicus.if.org Git - python/commitdiff
SF patch #892821: example for urllib2 has SyntaxError
authorRaymond Hettinger <python@rcn.com>
Sun, 8 Feb 2004 20:25:01 +0000 (20:25 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 8 Feb 2004 20:25:01 +0000 (20:25 +0000)
(Contributed by George Yoshida.)

Doc/lib/liburllib2.tex

index 0020b6c9c3ab2370056db615bc73d862d006cd6b..deea3a450ebdb8d14944f1b948eb3c71c4423b2e 100644 (file)
@@ -681,6 +681,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}