Skip to content

IDLE - Update code with pyupgrade #103668

Closed
Closed
@terryjreedy

Description

@terryjreedy

Item 7 for #87179. In #87179 (comment), Anthony Sottile suggestted running his program pyupgrade, which automates code updates. It would have done some of the things already done and will do some more. In response to my query, he said on another comment that it has been well tested on multiple packages to only do valid changes. His comment includes a bash command:
git ls-files -- Lib/idlelib | grep '\\.py$' | xargs pyupgrade --py36-plus
On Windows, use pyupgrade-directories or try above with git bash on idlelib and idle_test.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions