r36720 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36719‎ | r36720 | r36721 >
Date:10:42, 27 June 2008
Author:jojo
Status:old
Tags:
Comment:
fix: use sys.stdout.write() instead of print
Modified paths:
  • /trunk/extensions/Collection/pdf-server/pdfserver.py (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/pdf-server/pdfserver.py
@@ -47,6 +47,7 @@
4848 import simplejson
4949 import StringIO
5050 import subprocess
 51+import sys
5152 import time
5253
5354 def uid(max_length=10):
@@ -131,7 +132,7 @@
132133 content = result.get('content', '')
133134 print 'Content-Length: %d' % len(content)
134135 print # end of headers
135 - print content,
 136+ sys.stdout.write(content)
136137
137138 def do_render(self):
138139 metabook_data = self.form.getvalue('metabook')

Status & tagging log