diff options
author | kali <kali@leap.se> | 2012-08-08 03:05:08 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-08-08 03:05:08 +0900 |
commit | d17761802e3598bd51887a6c218fa682de22ad49 (patch) | |
tree | ec4a25de7843646667a50d8d82d44e102c2a2bdb | |
parent | 7cea25f531f46a1425ea54a79d96a3b662a8a7fd (diff) |
fix dict comprenhension unsupported in 2.6
-rw-r--r-- | src/leap/utils/coroutines.py | 4 |
1 files 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) |