emphasis log
(self, string, stdout=True)
| 44 | sys.stdout.write(f'\t{cstart}->{cend} {string}{end}') |
| 45 | |
| 46 | def emph(self, string, stdout=True): |
| 47 | """emphasis log""" |
| 48 | cstart = self._color(self.EMPH) |
| 49 | cend = self._color(self.RESET) |
| 50 | content = f'{cstart}{string}{cend}' |
| 51 | if not stdout: |
| 52 | sys.stderr.write(content) |
| 53 | else: |
| 54 | sys.stdout.write(content) |
| 55 | |
| 56 | def err(self, string, end='\n'): |
| 57 | """error log""" |
no test coverage detected