@@ -55,7 +55,7 @@ any codec:
55
55
56
56
The full details for each codec can also be looked up directly:
57
57
58
- .. function :: lookup(encoding)
58
+ .. function :: lookup(encoding, / )
59
59
60
60
Looks up the codec info in the Python codec registry and returns a
61
61
:class: `CodecInfo ` object as defined below.
@@ -156,7 +156,7 @@ these additional functions which use :func:`lookup` for the codec lookup:
156
156
Custom codecs are made available by registering a suitable codec search
157
157
function:
158
158
159
- .. function :: register(search_function)
159
+ .. function :: register(search_function, / )
160
160
161
161
Register a codec search function. Search functions are expected to take one
162
162
argument, being the encoding name in all lower case letters with hyphens
@@ -168,7 +168,7 @@ function:
168
168
Hyphens and spaces are converted to underscore.
169
169
170
170
171
- .. function :: unregister(search_function)
171
+ .. function :: unregister(search_function, / )
172
172
173
173
Unregister a codec search function and clear the registry's cache.
174
174
If the search function is not registered, do nothing.
@@ -416,7 +416,7 @@ In addition, the following error handler is specific to the given codecs:
416
416
The set of allowed values can be extended by registering a new named error
417
417
handler:
418
418
419
- .. function :: register_error(name, error_handler)
419
+ .. function :: register_error(name, error_handler, / )
420
420
421
421
Register the error handling function *error_handler * under the name *name *.
422
422
The *error_handler * argument will be called during encoding and decoding
@@ -442,7 +442,7 @@ handler:
442
442
Previously registered error handlers (including the standard error handlers)
443
443
can be looked up by name:
444
444
445
- .. function :: lookup_error(name)
445
+ .. function :: lookup_error(name, / )
446
446
447
447
Return the error handler previously registered under the name *name *.
448
448
0 commit comments