diff options
| author | Victor Stinner <vstinner@python.org> | 2022-06-22 17:14:27 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-22 17:14:27 (GMT) |
| commit | 47e35625ff2c4e6511a12e7178c3e4fbc965b634 (patch) | |
| tree | e9a6b4d687233135f993260b12011613b9189058 /Lib | |
| parent | 8661c5053fbe3e246289d77e49a813470b3a16f7 (diff) | |
| download | cpython-47e35625ff2c4e6511a12e7178c3e4fbc965b634.zip cpython-47e35625ff2c4e6511a12e7178c3e4fbc965b634.tar.gz cpython-47e35625ff2c4e6511a12e7178c3e4fbc965b634.tar.bz2 | |
gh-84623: Remove unused imports (#94132)
Diffstat (limited to 'Lib')
| -rw-r--r-- | Lib/random.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_asyncio/test_unix_events.py | 1 | ||||
| -rw-r--r-- | Lib/test/test_ctypes/test_parameters.py | 1 | ||||
| -rw-r--r-- | Lib/test/test_sqlite3/test_transactions.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_unittest/test_program.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_unittest/test_result.py | 2 | ||||
| -rw-r--r-- | Lib/tkinter/test/support.py | 1 | ||||
| -rw-r--r-- | Lib/tkinter/test/widget_tests.py | 1 |
8 files changed, 3 insertions, 9 deletions
diff --git a/Lib/random.py b/Lib/random.py index a2dfcb5..2166474 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -50,7 +50,7 @@ from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil from math import sqrt as _sqrt, acos as _acos, cos as _cos, sin as _sin from math import tau as TWOPI, floor as _floor, isfinite as _isfinite from os import urandom as _urandom -from _collections_abc import Set as _Set, Sequence as _Sequence +from _collections_abc import Sequence as _Sequence from operator import index as _index from itertools import accumulate as _accumulate, repeat as _repeat from bisect import bisect as _bisect diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py index 23d2e8a..9918165 100644 --- a/Lib/test/test_asyncio/test_unix_events.py +++ b/Lib/test/test_asyncio/test_unix_events.py @@ -9,7 +9,6 @@ import signal import socket import stat import sys -import tempfile import threading import unittest from unittest import mock diff --git a/Lib/test/test_ctypes/test_parameters.py b/Lib/test/test_ctypes/test_parameters.py index 2f755a6..84839d9 100644 --- a/Lib/test/test_ctypes/test_parameters.py +++ b/Lib/test/test_ctypes/test_parameters.py @@ -5,7 +5,6 @@ import test.support class SimpleTypesTestCase(unittest.TestCase): def setUp(self): - import ctypes try: from _ctypes import set_conversion_mode except ImportError: diff --git a/Lib/test/test_sqlite3/test_transactions.py b/Lib/test/test_sqlite3/test_transactions.py index a67d727..9c3d19e 100644 --- a/Lib/test/test_sqlite3/test_transactions.py +++ b/Lib/test/test_sqlite3/test_transactions.py @@ -20,7 +20,7 @@ # misrepresented as being the original software. # 3. This notice may not be removed or altered from any source distribution. -import os, unittest +import unittest import sqlite3 as sqlite from test.support import LOOPBACK_TIMEOUT diff --git a/Lib/test/test_unittest/test_program.py b/Lib/test/test_unittest/test_program.py index 169fc4e..3fecbcd 100644 --- a/Lib/test/test_unittest/test_program.py +++ b/Lib/test/test_unittest/test_program.py @@ -1,5 +1,3 @@ -import io - import os import sys import subprocess diff --git a/Lib/test/test_unittest/test_result.py b/Lib/test/test_unittest/test_result.py index b0cc3d8..eeb1599 100644 --- a/Lib/test/test_unittest/test_result.py +++ b/Lib/test/test_unittest/test_result.py @@ -2,7 +2,7 @@ import io import sys import textwrap -from test.support import warnings_helper, captured_stdout, captured_stderr +from test.support import warnings_helper, captured_stdout import traceback import unittest diff --git a/Lib/tkinter/test/support.py b/Lib/tkinter/test/support.py index 9e26d04..9154eba 100644 --- a/Lib/tkinter/test/support.py +++ b/Lib/tkinter/test/support.py @@ -1,5 +1,4 @@ import functools -import re import tkinter import unittest diff --git a/Lib/tkinter/test/widget_tests.py b/Lib/tkinter/test/widget_tests.py index a450544..8418154 100644 --- a/Lib/tkinter/test/widget_tests.py +++ b/Lib/tkinter/test/widget_tests.py @@ -1,6 +1,5 @@ # Common tests for test_tkinter/test_widgets.py and test_ttk/test_widgets.py -import unittest import tkinter from tkinter.test.support import (AbstractTkTest, tcl_version, pixels_conv, tcl_obj_eq) |
