{{ message }}
Repository navigation
Commit af58a6f
authored
The codecs lookup function now performs only minimal normalization of
the encoding name before passing it to the search functions:
all ASCII letters are converted to lower case, spaces are replaced
with hyphens.
Excessive normalization broke third-party codecs providers, like
python-iconv.
Revert "bpo-37751: Fix codecs.lookup() normalization (GH-15092)"
This reverts commit 20f59fe.
1 parent 6b7b9d0 commit af58a6f
5 files changed
Lines changed: 54 additions & 45 deletions
File tree
- Doc/library
- Lib/test
- test_capi
- Misc/NEWS.d/next/Core_and_Builtins
- Python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
634 | 633 | | |
635 | 634 | | |
636 | 635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3873 | 3873 | | |
3874 | 3874 | | |
3875 | 3875 | | |
3876 | | - | |
3877 | | - | |
3878 | 3876 | | |
3879 | | - | |
3880 | | - | |
| 3877 | + | |
| 3878 | + | |
3881 | 3879 | | |
3882 | | - | |
| 3880 | + | |
3883 | 3881 | | |
3884 | 3882 | | |
3885 | 3883 | | |
3886 | | - | |
3887 | | - | |
3888 | | - | |
3889 | | - | |
3890 | | - | |
3891 | | - | |
3892 | | - | |
3893 | | - | |
3894 | | - | |
3895 | | - | |
| 3884 | + | |
| 3885 | + | |
| 3886 | + | |
| 3887 | + | |
| 3888 | + | |
| 3889 | + | |
| 3890 | + | |
| 3891 | + | |
3896 | 3892 | | |
3897 | 3893 | | |
3898 | 3894 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |

0 commit comments