Bug report
Bug description:
(Not a bug report, but there is no appropriate category when creating an issue.)
git HEAD as well as Python 3.12 has the following code in codecs.py:
|
try: |
|
strict_errors = lookup_error("strict") |
|
ignore_errors = lookup_error("ignore") |
|
replace_errors = lookup_error("replace") |
|
xmlcharrefreplace_errors = lookup_error("xmlcharrefreplace") |
|
backslashreplace_errors = lookup_error("backslashreplace") |
|
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 |
Is --disable-unicode even a thing anymore or is the exception handler just dead code that should be removed?
CPython versions tested on:
3.12, CPython main branch
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
(Not a bug report, but there is no appropriate category when creating an issue.)
git HEAD as well as Python 3.12 has the following code in codecs.py:
cpython/Lib/codecs.py
Lines 1112 to 1126 in 8303d32
Is
--disable-unicodeeven a thing anymore or is the exception handler just dead code that should be removed?CPython versions tested on:
3.12, CPython main branch
Operating systems tested on:
Linux
Linked PRs