Changeset 664 for tea4cups

Show
Ignore:
Timestamp:
10/20/05 11:32:53 (19 years ago)
Author:
jerome
Message:

Polishing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups

    r662 r664  
    3434import ConfigParser 
    3535import signal 
    36 import popen2 
    3736from struct import pack, unpack 
    3837 
    39 version = "3.11_unofficial" 
     38__version__ = "3.11_unofficial" 
    4039 
    4140class TeeError(Exception): 
     
    360359        """Logs a message to CUPS' error_log file.""" 
    361360        try : 
    362             sys.stderr.write("%s: %s v%s (PID %i) : %s\n" % (level.upper(), self.MyName, version, os.getpid(), message)) 
     361            sys.stderr.write("%s: %s v%s (PID %i) : %s\n" % (level.upper(), self.MyName, __version__, os.getpid(), message)) 
    363362            sys.stderr.flush() 
    364363        except IOError : 
     
    869868            msg = "ERROR: ".join(["%s (PID %s) : %s\n" % (wrapper.MyName, \ 
    870869                                                          wrapper.pid, l) \ 
    871                         for l in (["ERROR: Tea4CUPS v%s" % version] + lines)]) 
     870                        for l in (["ERROR: Tea4CUPS v%s" % __version__] + lines)]) 
    872871            sys.stderr.write(msg) 
    873872            sys.stderr.flush()