mercurial/hgweb.py
changeset 582 df8a5a0098d4
parent 575 7f5ce4bbdd7b
child 598 f8d44a2e6928
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -54,7 +54,7 @@ def up(p):
     return up + "/"
 
 def httphdr(type):
-    print 'Content-type: %s\n' % type
+    sys.stdout.write('Content-type: %s\n\n' % type)
 
 def write(*things):
     for thing in things: