- Timestamp:
- 10/20/05 11:32:53 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/tea4cups
r662 r664 34 34 import ConfigParser 35 35 import signal 36 import popen237 36 from struct import pack, unpack 38 37 39 version= "3.11_unofficial"38 __version__ = "3.11_unofficial" 40 39 41 40 class TeeError(Exception): … … 360 359 """Logs a message to CUPS' error_log file.""" 361 360 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)) 363 362 sys.stderr.flush() 364 363 except IOError : … … 869 868 msg = "ERROR: ".join(["%s (PID %s) : %s\n" % (wrapper.MyName, \ 870 869 wrapper.pid, l) \ 871 for l in (["ERROR: Tea4CUPS v%s" % version] + lines)])870 for l in (["ERROR: Tea4CUPS v%s" % __version__] + lines)]) 872 871 sys.stderr.write(msg) 873 872 sys.stderr.flush()