summaryrefslogtreecommitdiffstats
path: root/Lib/codecs.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-06-13 14:14:50 (GMT)
committerGitHub <noreply@github.com>2024-06-13 14:14:50 (GMT)
commit6ae254aaa0a5a3985a52d1ab387a2b68c001bd96 (patch)
tree09a2b03e9721203f5b6b523fbb26db13f36e8569 /Lib/codecs.py
parentca5108a46d5da3978d4bd29717ea3fbdee772e66 (diff)
downloadcpython-6ae254aaa0a5a3985a52d1ab387a2b68c001bd96.zip
cpython-6ae254aaa0a5a3985a52d1ab387a2b68c001bd96.tar.gz
cpython-6ae254aaa0a5a3985a52d1ab387a2b68c001bd96.tar.bz2
gh-120417: Add #noqa to used imports in the stdlib (#120421)
Tools such as ruff can ignore "imported but unused" warnings if a line ends with "# noqa: F401". It avoids the temptation to remove an import which is used effectively.
Diffstat (limited to 'Lib/codecs.py')
-rw-r--r--Lib/codecs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py
index 9b35b61..a887e5d 100644
--- a/Lib/codecs.py
+++ b/Lib/codecs.py
@@ -1129,4 +1129,4 @@ except LookupError:
# package
_false = 0
if _false:
- import encodings
+ import encodings # noqa: F401