]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40443: Remove unused imports (GH-25429)
authorVictor Stinner <vstinner@python.org>
Fri, 16 Apr 2021 09:26:06 +0000 (11:26 +0200)
committerGitHub <noreply@github.com>
Fri, 16 Apr 2021 09:26:06 +0000 (11:26 +0200)
* pyclbr no longer uses copy
* typing no longer uses ast

Issue discovered by pyflakes.

Lib/pyclbr.py
Lib/typing.py
Misc/NEWS.d/next/Library/2021-04-16-02-03-00.bpo-40443.Io6FHL.rst [new file with mode: 0644]

index ebcc23c29da215b983bf16a126308901f1970b53..37f86995d6ce00013643f1b4a8aa387cebaeae72 100644 (file)
@@ -42,7 +42,6 @@ shouldn't happen often.
 """
 
 import ast
-import copy
 import sys
 import importlib.util
 
index dc2a7a478835dbca51f1b6fe7006c057892ee484..ea66cf50a078f1c7fc4ce2a1bec29db306a64378 100644 (file)
@@ -20,7 +20,6 @@ At large scale, the structure of the module is following:
 """
 
 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 (file)
index 0000000..f5672e6
--- /dev/null
@@ -0,0 +1,2 @@
+Remove unused imports: pyclbr no longer uses copy, and typing no longer uses
+ast. Patch by Victor Stinner.