From b6d9b98f0d5f0e9cee937a8b365f1aec8cd9aac1 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 6727065bbe323ff..38cd99ee50e3cf7 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 5a8fccf59dcb6e4..45e798693ccc385 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 2b6e6163b96592d..f44993ad947a10b 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