From 0aabc06bca65cf57861628f7d8be56352967dd88 Mon Sep 17 00:00:00 2001 From: Ivy Xu Date: Sun, 14 Jun 2026 20:00:28 +0800 Subject: [PATCH] gh-151428: Remove unused imports in the stdlib (GH-151440) (cherry picked from commit a7885b46f153e9c6857342a4963edf342c86845e) Co-authored-by: Ivy Xu --- Lib/asyncio/coroutines.py | 1 - Lib/unittest/mock.py | 1 - Lib/zipfile/__init__.py | 1 - 3 files changed, 3 deletions(-) diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py index 6727065bbe323f..38cd99ee50e3cf 100644 --- a/Lib/asyncio/coroutines.py +++ b/Lib/asyncio/coroutines.py @@ -1,7 +1,6 @@ __all__ = 'iscoroutinefunction', 'iscoroutine' import collections.abc -import inspect import os import sys import types diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 2f6f03c7a11ae6..05f97cf5d3d770 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -24,7 +24,6 @@ ) -import asyncio import contextlib import io import inspect diff --git a/Lib/zipfile/__init__.py b/Lib/zipfile/__init__.py index 71e4dd4f6f625c..005b6f4eb84044 100644 --- a/Lib/zipfile/__init__.py +++ b/Lib/zipfile/__init__.py @@ -4,7 +4,6 @@ XXX references to utf-8 need further investigation. """ import binascii -import importlib.util import io import os import shutil