comparison server/dump.py @ 86:6c18e0d12276

fix dump.py's sock.send()
author Matt Johnston <matt@ucc.asn.au>
date Wed, 11 Jul 2012 23:43:36 +0800
parents 56b1f02f470c
children de950be796dd
comparison
equal deleted inserted replaced
85:3cd1ca6d0489 86:6c18e0d12276
139 139
140 def do_comms(sock): 140 def do_comms(sock):
141 args = sys.argv[1:] 141 args = sys.argv[1:]
142 print "do_comms" 142 print "do_comms"
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 print l
149 149