summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-08 03:05:08 +0900
committerkali <kali@leap.se>2012-08-08 03:05:08 +0900
commitd17761802e3598bd51887a6c218fa682de22ad49 (patch)
treeec4a25de7843646667a50d8d82d44e102c2a2bdb /src/leap
parent7cea25f531f46a1425ea54a79d96a3b662a8a7fd (diff)
fix dict comprenhension unsupported in 2.6
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/utils/coroutines.py4
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)