Show
Ignore:
Timestamp:
10/05/08 11:21:53 (16 years ago)
Author:
jerome
Message:

Changed the way informations are output, especially to replace 'print'
statements which won't exist anymore in Python 3.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkturnkey

    r3424 r3429  
    331331            return 
    332332        sys.stderr.flush() # ensure outputs don't mix 
    333         print 
    334         print "--- CUT ---" 
    335         print "# Here are some lines that we suggest you add at the end" 
    336         print "# of the pykota.conf file. These lines gives possible" 
    337         print "# values for the way print jobs' size will be computed." 
    338         print "# NB : it is possible that a manual configuration gives" 
    339         print "# better results for you. As always, your mileage may vary." 
    340         print "#" 
     333        self.display("\n--- CUT ---\n") 
     334        self.display("# Here are some lines that we suggest you add at the end\n") 
     335        self.display("# of the pykota.conf file. These lines gives possible\n") 
     336        self.display("# values for the way print jobs' size will be computed.\n") 
     337        self.display("# NB : it is possible that a manual configuration gives\n") 
     338        self.display("# better results for you. As always, your mileage may vary.\n") 
     339        self.display("#\n") 
    341340        for (name, uri) in printers : 
    342             print "[%s]" % name 
     341            self.display("[%s]\n" % name) 
    343342            accounter = "software()" 
    344343            try : 
     
    380379                        accounter = "hardware(pjl:%s)" % port 
    381380 
    382             print "preaccounter : software()" 
    383             print "accounter : %s" % accounter 
    384             print 
    385         print "--- CUT ---" 
     381            self.display("preaccounter : software()\n") 
     382            self.display("accounter : %s\n" % accounter) 
     383            self.display("\n") 
     384        self.display("--- CUT ---\n") 
    386385 
    387386    def main(self, names, options) :