Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused imports in the stdlib (April 2020 edition) #84623

Closed
vstinner opened this issue Apr 29, 2020 · 13 comments · Fixed by #93772
Closed

Remove unused imports in the stdlib (April 2020 edition) #84623

vstinner opened this issue Apr 29, 2020 · 13 comments · Fixed by #93772
Labels
3.9 stdlib tests

Comments

@vstinner
Copy link
Member

@vstinner vstinner commented Apr 29, 2020

BPO 40443
Nosy @terryjreedy, @vstinner, @corona10, @miss-islington
PRs
  • #19801
  • #19802
  • #19803
  • #19804
  • #19805
  • #19808
  • #19809
  • #19815
  • #20354
  • #20359
  • #25429
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-05-01.00:38:25.016>
    created_at = <Date 2020-04-29.22:42:28.273>
    labels = ['tests', 'library', '3.9']
    title = 'Remove unused imports in the stdlib (April 2020 edition)'
    updated_at = <Date 2021-04-16.09:26:36.672>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2021-04-16.09:26:36.672>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-05-01.00:38:25.016>
    closer = 'vstinner'
    components = ['Library (Lib)', 'Tests']
    creation = <Date 2020-04-29.22:42:28.273>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40443
    keywords = ['patch']
    message_count = 13.0
    messages = ['367711', '367715', '367720', '367725', '367727', '367728', '367748', '367749', '367819', '367820', '369805', '369807', '391174']
    nosy_count = 4.0
    nosy_names = ['terry.reedy', 'vstinner', 'corona10', 'miss-islington']
    pr_nums = ['19801', '19802', '19803', '19804', '19805', '19808', '19809', '19815', '20354', '20359', '25429']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue40443'
    versions = ['Python 3.9']

    @vstinner
    Copy link
    Member Author

    @vstinner vstinner commented Apr 29, 2020

    Attached PRs removed unused imports from the Python standard library.

    I used pyflakes and looked for "imported but unused" warnings. I ignored tons of warnings, since many are false alarms: imports done on purpose.

    Previous editions:

    @vstinner vstinner added 3.9 stdlib tests labels Apr 29, 2020
    @vstinner
    Copy link
    Member Author

    @vstinner vstinner commented Apr 29, 2020

    New changeset 57572b1 by Victor Stinner in branch 'master':
    bpo-40443: Remove unused imports in tests (GH-19805)
    57572b1

    @vstinner
    Copy link
    Member Author

    @vstinner vstinner commented Apr 30, 2020

    New changeset b1e11c3 by Victor Stinner in branch 'master':
    bpo-40443: Remove unused imports in tests (GH-19804)
    b1e11c3

    @terryjreedy
    Copy link
    Member

    @terryjreedy terryjreedy commented Apr 30, 2020

    New changeset 6900f16 by Victor Stinner in branch 'master':
    bpo-40443: Remove unused imports in idlelib (GH-19801)
    6900f16

    @miss-islington
    Copy link
    Contributor

    @miss-islington miss-islington commented Apr 30, 2020

    New changeset 48ef06b by Miss Islington (bot) in branch '3.7':
    bpo-40443: Remove unused imports in idlelib (GH-19801)
    48ef06b

    @miss-islington
    Copy link
    Contributor

    @miss-islington miss-islington commented Apr 30, 2020

    New changeset 95e208d by Miss Islington (bot) in branch '3.8':
    bpo-40443: Remove unused imports in idlelib (GH-19801)
    95e208d

    @vstinner
    Copy link
    Member Author

    @vstinner vstinner commented Apr 30, 2020

    New changeset 9054967 by Victor Stinner in branch 'master':
    bpo-40443: Remove unused imports in the stdlib (GH-19803)
    9054967

    @vstinner
    Copy link
    Member Author

    @vstinner vstinner commented Apr 30, 2020

    New changeset e488e30 by Victor Stinner in branch 'master':
    bpo-40443: Remove unused imports in distutils (GH-19802)
    e488e30

    @vstinner
    Copy link
    Member Author

    @vstinner vstinner commented May 1, 2020

    New changeset eb0d359 by Victor Stinner in branch 'master':
    bpo-40443: Remove unused imports in stdlib (GH-19815)
    eb0d359

    @vstinner
    Copy link
    Member Author

    @vstinner vstinner commented May 1, 2020

    Thanks for reviews!

    @corona10
    Copy link
    Member

    @corona10 corona10 commented May 24, 2020

    New changeset 3436f5f by Dong-hee Na in branch 'master':
    bpo-40443: Remove unused imports in the zoneinfo (GH-20354)
    3436f5f

    @miss-islington
    Copy link
    Contributor

    @miss-islington miss-islington commented May 24, 2020

    New changeset 4bb4cde by Miss Islington (bot) in branch '3.9':
    bpo-40443: Remove unused imports in the zoneinfo (GH-20354)
    4bb4cde

    @vstinner
    Copy link
    Member Author

    @vstinner vstinner commented Apr 16, 2021

    New changeset a6a5c91 by Victor Stinner in branch 'master':
    bpo-40443: Remove unused imports (GH-25429)
    a6a5c91

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @erlend-aasland erlend-aasland linked a pull request Jun 13, 2022 that will close this issue
    vstinner added a commit to vstinner/cpython that referenced this issue Jun 22, 2022
    vstinner added a commit to vstinner/cpython that referenced this issue Jun 22, 2022
    vstinner added a commit to vstinner/cpython that referenced this issue Jun 22, 2022
    vstinner added a commit to vstinner/cpython that referenced this issue Jun 22, 2022
    vstinner added a commit to vstinner/cpython that referenced this issue Jun 22, 2022
    vstinner added a commit to vstinner/cpython that referenced this issue Jun 22, 2022
    Move imports in doctests to prevent false alarms in pyflakes.
    vstinner added a commit that referenced this issue Jun 22, 2022
    Move imports in doctests to prevent false alarms in pyflakes.
    vstinner added a commit to vstinner/cpython that referenced this issue Jun 22, 2022
    Remove commented code in test_debugger_r.py
    vstinner added a commit that referenced this issue Jun 22, 2022
    Remove commented code in test_debugger_r.py.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 22, 2022
    Remove commented code in test_debugger_r.py.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    (cherry picked from commit 576dd90)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 22, 2022
    Remove commented code in test_debugger_r.py.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    (cherry picked from commit 576dd90)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    miss-islington added a commit that referenced this issue Jun 22, 2022
    Remove commented code in test_debugger_r.py.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    (cherry picked from commit 576dd90)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    vstinner added a commit that referenced this issue Jun 23, 2022
    Remove commented code in test_debugger_r.py.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    (cherry picked from commit 576dd90)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 stdlib tests
    Projects
    None yet
    Development

    Successfully merging a pull request may close this issue.

    4 participants