-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-29919: Remove unused imports found by pyflakes #137
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
"""Tests support for new syntax introduced by PEP 492.""" | ||
|
||
import collections.abc | ||
import types | ||
import unittest | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
import weakref | ||
import copy | ||
import pickle | ||
from io import StringIO | ||
import random | ||
import struct | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
import warnings | ||
import weakref | ||
import inspect | ||
import types | ||
|
||
from test import support | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import os | ||
import sys | ||
import builtins | ||
import contextlib | ||
import importlib.util | ||
import inspect | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,6 @@ | |
|
||
__unittest = True | ||
|
||
from .main import main, TestProgram | ||
from .main import main | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks suspicious. Are you sure that TestProgram is not needed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lib/unittest/main.py ends with "main = TestProgram". And TestProgram is not used in Lib/unittest/main.py. |
||
|
||
main(module=None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why BooleanVar and StringVar are commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are used in commented code a few lines below. I don't want to remove this commented code, since I don't know this file.