[Python-checkins] bpo-40443: Remove unused imports (GH-25429)
vstinner
webhook-mailer at python.org
Fri Apr 16 05:26:37 EDT 2021
https://github.com/python/cpython/commit/a6a5c91b1ee56fa5ba7ab8c5aeca70c31cc85fd3
commit: a6a5c91b1ee56fa5ba7ab8c5aeca70c31cc85fd3
branch: master
author: Victor Stinner <vstinner at python.org>
committer: vstinner <vstinner at python.org>
date: 2021-04-16T11:26:06+02:00
summary:
bpo-40443: Remove unused imports (GH-25429)
* pyclbr no longer uses copy
* typing no longer uses ast
Issue discovered by pyflakes.
files:
A Misc/NEWS.d/next/Library/2021-04-16-02-03-00.bpo-40443.Io6FHL.rst
M Lib/pyclbr.py
M Lib/typing.py
diff --git a/Lib/pyclbr.py b/Lib/pyclbr.py
index ebcc23c29da21..37f86995d6ce0 100644
--- a/Lib/pyclbr.py
+++ b/Lib/pyclbr.py
@@ -42,7 +42,6 @@
"""
import ast
-import copy
import sys
import importlib.util
diff --git a/Lib/typing.py b/Lib/typing.py
index dc2a7a478835d..ea66cf50a078f 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -20,7 +20,6 @@
"""
from abc import abstractmethod, ABCMeta
-import ast
import collections
import collections.abc
import contextlib
diff --git a/Misc/NEWS.d/next/Library/2021-04-16-02-03-00.bpo-40443.Io6FHL.rst b/Misc/NEWS.d/next/Library/2021-04-16-02-03-00.bpo-40443.Io6FHL.rst
new file mode 100644
index 0000000000000..f5672e6bd7bf5
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-04-16-02-03-00.bpo-40443.Io6FHL.rst
@@ -0,0 +1,2 @@
+Remove unused imports: pyclbr no longer uses copy, and typing no longer uses
+ast. Patch by Victor Stinner.
More information about the Python-checkins
mailing list