File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,6 @@ and writing to platform dependent files:
256
256
encodings.
257
257
258
258
259
- .. _surrogateescape :
260
259
.. _codec-base-classes :
261
260
262
261
Codec Base Classes
@@ -273,6 +272,7 @@ implement the file protocols. Codec authors also need to define how the
273
272
codec will handle encoding and decoding errors.
274
273
275
274
275
+ .. _surrogateescape :
276
276
.. _error-handlers :
277
277
278
278
Error Handlers
@@ -319,7 +319,8 @@ The following error handlers are only applicable to
319
319
| | :func: `backslashreplace_errors `. |
320
320
+-------------------------+-----------------------------------------------+
321
321
| ``'namereplace' `` | Replace with ``\N{...} `` escape sequences |
322
- | | (only for encoding). |
322
+ | | (only for encoding). Implemented in |
323
+ | | :func: `namereplace_errors `. |
323
324
+-------------------------+-----------------------------------------------+
324
325
| ``'surrogateescape' `` | On decoding, replace byte with individual |
325
326
| | surrogate code ranging from ``U+DC80 `` to |
@@ -422,7 +423,8 @@ functions:
422
423
423
424
.. function :: namereplace_errors(exception)
424
425
425
- Implements the ``namereplace `` error handling (for encoding only): the
426
+ Implements the ``'namereplace' `` error handling (for encoding with
427
+ :term: `text encodings <text encoding> ` only): the
426
428
unencodable character is replaced by a ``\N{...} `` escape sequence.
427
429
428
430
.. versionadded :: 3.5
You can’t perform that action at this time.
0 commit comments