Commit b243e2ef authored by Frank Winkler's avatar Frank Winkler

Fixed bug.

iteritems() was removed in python3. Instead: use dict.items()
parent d271e6d2
......@@ -126,7 +126,7 @@ def save_job_env(env_file, slurm_env, connection, debug_file):
cpu_allocated = ''
if exclusive == 0:
for key, value in slurm_env['cpus_alloc_layout'].iteritems():
for key, value in slurm_env['cpus_alloc_layout'].items():
cpu_allocated += str(key) + str('[') + str(list_to_ranges(value)) + str('],')
#remove last comma from string
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