From e59cc89059a0bd7f6d3a253a8a13a925e8e24605 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 14 Feb 2018 20:42:31 +0000 Subject: [PATCH] examples: fix mitop example. --- examples/mitop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/mitop.py b/examples/mitop.py index 07a937ef..84b52168 100644 --- a/examples/mitop.py +++ b/examples/mitop.py @@ -127,8 +127,8 @@ class Painter(object): def local_main(painter, router, select, delay): next_paint = 0 while True: - recv, (msg, data) = select.get() - parse_output(recv.host, data) + msg = select.get() + parse_output(msg.receiver.host, msg.unpickle()) if next_paint < time.time(): next_paint = time.time() + delay painter.paint()