mirror of
https://github.com/python/cpython.git
synced 2024-11-24 17:47:13 +01:00
It was only needed for non-Unicode Python builds, which aren't supported anymore.
This commit is contained in:
parent
94bee45dee
commit
74fbdcd74a
@ -1109,21 +1109,12 @@ def make_encoding_map(decoding_map):
|
|||||||
|
|
||||||
### error handlers
|
### error handlers
|
||||||
|
|
||||||
try:
|
|
||||||
strict_errors = lookup_error("strict")
|
strict_errors = lookup_error("strict")
|
||||||
ignore_errors = lookup_error("ignore")
|
ignore_errors = lookup_error("ignore")
|
||||||
replace_errors = lookup_error("replace")
|
replace_errors = lookup_error("replace")
|
||||||
xmlcharrefreplace_errors = lookup_error("xmlcharrefreplace")
|
xmlcharrefreplace_errors = lookup_error("xmlcharrefreplace")
|
||||||
backslashreplace_errors = lookup_error("backslashreplace")
|
backslashreplace_errors = lookup_error("backslashreplace")
|
||||||
namereplace_errors = lookup_error("namereplace")
|
namereplace_errors = lookup_error("namereplace")
|
||||||
except LookupError:
|
|
||||||
# In --disable-unicode builds, these error handler are missing
|
|
||||||
strict_errors = None
|
|
||||||
ignore_errors = None
|
|
||||||
replace_errors = None
|
|
||||||
xmlcharrefreplace_errors = None
|
|
||||||
backslashreplace_errors = None
|
|
||||||
namereplace_errors = None
|
|
||||||
|
|
||||||
# Tell modulefinder that using codecs probably needs the encodings
|
# Tell modulefinder that using codecs probably needs the encodings
|
||||||
# package
|
# package
|
||||||
|
Loading…
Reference in New Issue
Block a user