We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8fc658 commit 5b50daaCopy full SHA for 5b50daa
1 file changed
Lib/encodings/__init__.py
@@ -29,7 +29,6 @@
29
"""
30
31
import codecs
32
-import warnings
33
import sys
34
from . import aliases
35
@@ -57,6 +56,7 @@ def normalize_encoding(encoding):
57
56
encoding = str(encoding, "ascii")
58
59
if not encoding.isascii():
+ import warnings
60
warnings.warn(
61
"Support for non-ascii encoding names will be removed in 3.17",
62
DeprecationWarning, stacklevel=2)
0 commit comments