(self, record)
| 45 | return isatty and isatty() |
| 46 | |
| 47 | def emit(self, record): |
| 48 | try: |
| 49 | message = self.format(record) |
| 50 | stream = self.stream |
| 51 | if not self.is_tty: |
| 52 | stream.write(message) |
| 53 | else: |
| 54 | self.output_colorized(message) |
| 55 | stream.write(getattr(self, 'terminator', '\n')) |
| 56 | self.flush() |
| 57 | except (KeyboardInterrupt, SystemExit): |
| 58 | raise |
| 59 | except: |
| 60 | self.handleError(record) |
| 61 | |
| 62 | if os.name != 'nt': |
| 63 | def output_colorized(self, message): |
nothing calls this directly
no test coverage detected