def _log_command_output(self, out): if tty.is_verbose(): fmt = self.command_name + ': {0}' for ln in out.getvalue().split('\n'): if len(ln) > 0: tty.verbose(fmt.format(ln.replace('==> ', '')))
def _get_counts_desc(self): return '(reads {0}, writes {1})'.format(self._reads, self._writes) \ if tty.is_verbose() else ''