Show
Ignore:
Timestamp:
02/09/06 00:15:46 (18 years ago)
Author:
jerome
Message:

Huge speed improvements when using the --delete command line option for pkprinters, pkbcodes and edpykota.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/tool.py

    r2650 r2657  
    195195        return self.charset 
    196196         
     197    def display(self, message) : 
     198        """Display a message but only if stdout is a tty.""" 
     199        if sys.stdout.isatty() : 
     200            sys.stdout.write(message) 
     201            sys.stdout.flush() 
     202             
    197203    def logdebug(self, message) :     
    198204        """Logs something to debug output if debug is enabled."""