Changeset 3469 for pykota/trunk/cgi-bin

Show
Ignore:
Timestamp:
12/16/08 22:45:54 (16 years ago)
Author:
jerome
Message:

Removed all 'print' statements.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/cgi-bin/dumpykota.cgi

    r3413 r3469  
    231231                        ctype = "text/plain" 
    232232                        fname = "page_log" 
    233                     print "Content-type: %s" % ctype 
    234                     print "Content-disposition: attachment; filename=%s" % fname 
    235                     print 
     233                    sys.stdout.write("Content-type: %s\n" % ctype) 
     234                    sys.stdout.write("Content-disposition: attachment; filename=%s\n\n" % fname) 
    236235                    self.main(self.arguments, self.options, restricted=0) 
    237236                except : 
    238                     print 'Content-type: text/html\n\n<html><head><title>CGI Error</title></head><body><p><font color="red">%s</font></p></body></html>' % self.crashed("CGI Error").replace("\n", "<br />") 
     237                    sys.stdout.write('Content-type: text/html\n\n<html><head><title>CGI Error</title></head><body><p><font color="red">%s</font></p></body></html>\n' % self.crashed("CGI Error").replace("\n", "<br />")) 
    239238            else : 
    240239                self.guiDisplay()