Exemple #1
0
 def std_listen(self, handle, out):
     while True:
         line = handle.readline()
         if not line:
             return
         if out:
             out.write("%s: %s" % (stime(), line))
Exemple #2
0
 def std_listen(self, handle, out):
     while True:
         line = handle.readline()
         if not line:
             return
         if out: out.write('%s: %s' %(stime(), line))
Exemple #3
0
 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))
Exemple #4
0
 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))