Fix little output glitch

This commit is contained in:
Steven Robertson 2012-06-10 09:14:25 -07:00
parent c424af5124
commit 54e2192dde

4
dist/server.py vendored
View File

@ -72,12 +72,12 @@ def setup_worker_listener(addrs, tq, rq):
worker_addr = readyq.get() worker_addr = readyq.get()
wsock.send_multipart([worker_addr, '', pickle.dumps(ctask)]) wsock.send_multipart([worker_addr, '', pickle.dumps(ctask)])
@spawn @spawn
def read_rsps(): def read_rsps():
while True: while True:
rsp = wsock.recv_multipart(copy=False) rsp = wsock.recv_multipart(copy=False)
if rsp[2].bytes != '': if rsp[2].bytes != '':
print '< ', ' '.join([r.bytes for r in rsp[1:-1]]) print '< ', ' '.join([r.bytes for r in rsp[2:-1]])
rq.put(rsp[2:]) rq.put(rsp[2:])
readyq.put(rsp[0]) readyq.put(rsp[0])