Skip to content

Commit

Permalink
Use 2.6 python syntax for constructing a dictionary (dmwm#4650)
Browse files Browse the repository at this point in the history
  • Loading branch information
emaszs authored Nov 2, 2016
1 parent c06ca4c commit 8309a13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/python/CRABClient/Commands/resubmit2.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ def processJobIds(self, jobList):
return None

# Build a dictionary from the jobList
jobStatusDict = {jobId: jobStatus for jobStatus, jobId in jobList['jobList']}
jobStatusDict = {}
for jobStatus, jobId in jobList['jobList']:
jobStatusDict[jobId] = jobStatus

failedJobStatus = 'failed'
finishedJobStatus = 'finished'
Expand Down

0 comments on commit 8309a13

Please sign in to comment.