comparison server/dump.py @ 132:97aad4471593

merge
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 Oct 2012 21:51:55 +0800
parents de950be796dd
children
comparison
equal deleted inserted replaced
130:66d5e15f40d0 132:97aad4471593
143 for a in args: 143 for a in args:
144 sock.send('%s\n' % a) 144 sock.send('%s\n' % a)
145 145
146 while True: 146 while True:
147 l = readline(sock) 147 l = readline(sock)
148 print l 148 if not l:
149 print '.',
150 sys.stdout.flush()
151 else:
152 print l
149 153
150 testcount = 0 154 testcount = 0
151 155
152 def sleep_for(secs): 156 def sleep_for(secs):
153 until = monotonic_time() + secs 157 until = monotonic_time() + secs