Closed Bug 1726573 Opened 4 years ago Closed 4 years ago

Run 'pyupgrade --py36-plus' on taskgraph

Categories

(Firefox Build System :: Task Configuration, task)

task

Tracking

(firefox93 fixed)

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: ahal, Assigned: ahal)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

We dropped support for Python 2 in gecko taskgraph awhile back. But we've still tried to keep it Python 2 compatible because the standalone taskgraph still needed to support Python 2, and doing so made syncing changes between the two much easier.

With bug 1720715, we will be dropping Py2 support in standalone taskgraph. This means we can run pyupgrade on both codebases while still keeping them in sync.

This patch was generated via:

$ pyupgrade --py36-plus $(find taskcluster/taskgraph -name ".py" -type f)
$ autoflake --remove-all-unused-imports -i $(find taskcluster/taskgraph -name "
.py" -type f)

The same set of commands are being applied to standalone taskgraph as well so
they remain in sync.

Sister changes in standalone taskgraph are here:
https://phabricator.services.mozilla.com/D123130

Attachment #9237249 - Attachment description: WIP: Bug 1726573 - Run 'pyupgrade --py36-plus' on taskcluster/taskgraph directory → Bug 1726573 - Run 'pyupgrade --py36-plus' on taskcluster/taskgraph directory, r?#taskgraph-reviewers!
Attachment #9237250 - Attachment description: WIP: Bug 1726573 - [taskgraph] Remove remaining uses of 'six' → Bug 1726573 - [taskgraph] Remove remaining uses of 'six', r?#taskgraph-reviewers!
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: