Commit 413294b8 authored by sumpfralle's avatar sumpfralle

fixed previous commit (invalid conversion to list)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1079 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 46fcd0cd
......@@ -797,7 +797,7 @@ class PendingTasks(object):
stale_start_time = time.time() - self._stale_timeout
stale_tasks = []
# use a copy to prevent "dictionary changed size in iteration" errors
current_jobs = self._jobs.iteritems()[:]
current_jobs = list(self._jobs.iteritems())
for (job_id, task_id), (start_time, info) in current_jobs:
if start_time < stale_start_time:
stale_tasks.append((job_id, task_id, info))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment