From 8eaf2abe2ce91b455518a460dfe3a7366f4b0f4d Mon Sep 17 00:00:00 2001
From: Freddie Witherden <freddie@witherden.org>
Date: Tue, 17 May 2016 12:57:54 -0700
Subject: [PATCH] Fix prefork for Python 2.6.

---
 pytools/prefork.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pytools/prefork.py b/pytools/prefork.py
index 9cb9054..6932bc9 100644
--- a/pytools/prefork.py
+++ b/pytools/prefork.py
@@ -65,7 +65,12 @@ class DirectForker(object):
         return retc
 
     def waitall(self):
-        return {aid: self.wait(aid) for aid in list(self.apids)}
+        rets = {}
+
+        for aid in list(self.apids):
+            rets[aid] = self.wait(aid)
+
+        return rets
 
 
 def _send_packet(sock, data):
-- 
GitLab