Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Relocate import
  • Loading branch information
StanFromIreland committed Oct 13, 2025
commit 5b50daaddae581499840282c8ba8384d814925f0
2 changes: 1 addition & 1 deletion Lib/encodings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"""

import codecs
import warnings
import sys
from . import aliases

Expand Down Expand Up @@ -57,6 +56,7 @@ def normalize_encoding(encoding):
encoding = str(encoding, "ascii")

if not encoding.isascii():
import warnings
warnings.warn(
"Support for non-ascii encoding names will be removed in 3.17",
DeprecationWarning, stacklevel=2)
Expand Down
Loading