Initial port to python3
[htsworkflow.git] / htsworkflow / util / queuecommands.py
index 2b7da653bedb0c806530e05b28a08d44d8b0b3dd..4c5a9ee8860ed5769b47f509b2498509c2a90999 100644 (file)
@@ -75,7 +75,7 @@ class QueueCommands(object):
 
             # build a list of file descriptors
             # fds=file desciptors
-            fds = [ x.stdout for x in self.running.values()]
+            fds = [ x.stdout for x in list(self.running.values())]
 
             # wait for something to finish
             # wl= write list, xl=exception list (not used so get bad names)
@@ -95,4 +95,3 @@ class QueueCommands(object):
                     buffer = buffer.strip()
                     msg = "%d:(%d) %s" %(pending.pid, len(buffer), buffer)
                     LOGGER.debug(msg)
-            time.sleep(1)