def good(self, msg, *args): """If we'd log WARN messages, log this message as a 'nice' anti-warn message. """ if WARN >= self.threshold: if args: print(green_text(msg % _fix_args(args))) else: print(green_text(msg)) sys.stdout.flush()
def good(self, msg, *args): """If we'd log WARN messages, log this message as a 'nice' anti-warn message. """ if WARN >= self.threshold: if args: print((green_text(msg % _fix_args(args)))) else: print((green_text(msg))) sys.stdout.flush()