>> + if esc and sys.platform != "win32" and 'isatty' in dir(file) and >> file.isatty(): > > Please use hasattr(log, 'isatty') instead. Ačiū, Mariau. I felt that there should be more efficient way to do that ;-) -- Dalius http://blog.sandbox.lt