File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -159,9 +159,13 @@ function:
159159.. function :: register(search_function)
160160
161161 Register a codec search function. Search functions are expected to take one
162- argument, being the encoding name in all lower case letters, and return a
163- :class: `CodecInfo ` object. In case a search function cannot find
164- a given encoding, it should return ``None ``.
162+ argument, being the encoding name in all lower case letters with hyphens
163+ and spaces converted to underscores, and return a :class: `CodecInfo ` object.
164+ In case a search function cannot find a given encoding, it should return
165+ ``None ``.
166+
167+ .. versionchanged :: 3.9
168+ Hyphens and spaces are converted to underscore.
165169
166170
167171.. function :: unregister(search_function)
You can’t perform that action at this time.
0 commit comments