Show
Ignore:
Timestamp:
11/25/08 00:10:40 (15 years ago)
Author:
jerome
Message:

Replaced all print statements.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/analyzer.py

    r3436 r3456  
    222222    (options, arguments) = parser.parse_args() 
    223223    if options.version : 
    224         print "%s" % version.__version__ 
     224        sys.stdout.write("%s\n" % version.__version__) 
    225225    elif not (72 <= options.resolution <= 1200) : 
    226226        sys.stderr.write("ERROR: the argument to the --resolution command line option must be between 72 and 1200.\n") 
     
    254254            sys.stderr.flush() 
    255255        if not options.colorspace : 
    256             print "%i" % totalsize 
     256            sys.stdout.write("%i\n" % totalsize) 
    257257        else : 
    258             print "\n".join(lines) 
     258            sys.stdout.write("%s\n" % ("\n".join(lines))) 
    259259 
    260260if __name__ == "__main__" :