Skip to content

Commit 7008d81

Browse files
committed
Use dict.fromkeys rather than dict comprehension
1 parent 2ff75da commit 7008d81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/lsst/ctrl/bps/panda/panda_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def report(
193193
run=head["name"],
194194
state=WmsStates.UNKNOWN,
195195
total_number_jobs=0,
196-
job_state_counts={state: 0 for state in WmsStates},
196+
job_state_counts=dict.fromkeys(WmsStates, 0),
197197
job_summary={},
198198
run_summary="",
199199
exit_code_summary=[],

0 commit comments

Comments
 (0)