Closed Bug 1797698 Opened 1 year ago Closed 1 year ago

Cleanup: gecko_taskgraph/transforms/task.py

Categories

(Taskcluster :: General, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

Details

Attachments

(1 file)

Implementation of gecko_taskgraph/transforms/task.py could sometime be improved by using appropriate dict methods instead of explicit control flow.

Avoid long lines by using appropriate temporary variables.
Use dict.pop instead of dict.get + del.
Move loop invariant outside of loops.

Assignee: nobody → sguelton
Status: NEW → ASSIGNED
Pushed by jmaher@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/111b0cf62dcc
Minor gecko_taskgraph/transforms/task.py cleanup r=taskgraph-reviewers,ahal
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: