def std_listen(self, handle, out): while True: line = handle.readline() if not line: return if out: out.write("%s: %s" % (stime(), line))
def std_listen(self, handle, out): while True: line = handle.readline() if not line: return if out: out.write('%s: %s' %(stime(), line))
def print_write(self, s): if self.host in PRINT_VERB: printtime("%s: %s" % (self.host, s)) self.out.write("%s: %s\n" % (stime(), s))
def print_write(self, s): if self.host in PRINT_VERB: printtime('%s: %s' % (self.host, s)) self.out.write('%s: %s\n' % (stime(), s))