]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120417: Fix "imported but unused" linter warnings (#120461)
authorVictor Stinner <vstinner@python.org>
Fri, 14 Jun 2024 18:39:50 +0000 (20:39 +0200)
committerGitHub <noreply@github.com>
Fri, 14 Jun 2024 18:39:50 +0000 (20:39 +0200)
commit05df063ad80becc1ba6bd07d67b55b5965f32375
treef0c29d986aafdc49366a8627702e10dab54a887e
parented60ab5fab6d187068cb3e0f0d4192ebf3a228b7
gh-120417: Fix "imported but unused" linter warnings (#120461)

Add __all__ to the following modules:
importlib.machinery, importlib.util and xml.sax.

Add also "# noqa: F401" in collections.abc,
subprocess and xml.sax.

* Sort __all__; remove collections.abc.__all__; remove private names

* Add tests
Lib/collections/abc.py
Lib/importlib/machinery.py
Lib/importlib/util.py
Lib/subprocess.py
Lib/test/test_importlib/test_api.py
Lib/test/test_sax.py
Lib/xml/sax/__init__.py