From d17761802e3598bd51887a6c218fa682de22ad49 Mon Sep 17 00:00:00 2001 From: kali Date: Wed, 8 Aug 2012 03:05:08 +0900 Subject: fix dict comprenhension unsupported in 2.6 --- src/leap/utils/coroutines.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/leap/utils/coroutines.py b/src/leap/utils/coroutines.py index 5e25eb63..e7ccfacf 100644 --- a/src/leap/utils/coroutines.py +++ b/src/leap/utils/coroutines.py @@ -74,8 +74,8 @@ def watch_output(out, observers): for each event :type ovservers: tuple """ - observer_dict = {observer: process_events(observer) - for observer in observers} + observer_dict = dict(((observer, process_events(observer)) + for observer in observers)) for line in iter(out.readline, b''): for obs in observer_dict: observer_dict[obs].send(line) -- cgit v1.2.3