Skip to content

Commit 037ef8d

Browse files
bpo-44522: Fix inaccurate information in open() function (GH-27650) (GH-27682)
- Use "Low surrogate code units" instead of "Unicode Private Use Area" (cherry picked from commit b05e9b6) Co-authored-by: meowmeowmeowcat <[email protected]>
1 parent ede221e commit 037ef8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/functions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,9 +1150,9 @@ are always available. They are listed here in alphabetical order.
11501150
* ``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted
11511151
where there is malformed data.
11521152

1153-
* ``'surrogateescape'`` will represent any incorrect bytes as code
1154-
points in the Unicode Private Use Area ranging from U+DC80 to
1155-
U+DCFF. These private code points will then be turned back into
1153+
* ``'surrogateescape'`` will represent any incorrect bytes as low
1154+
surrogate code units ranging from U+DC80 to U+DCFF.
1155+
These surrogate code units will then be turned back into
11561156
the same bytes when the ``surrogateescape`` error handler is used
11571157
when writing data. This is useful for processing files in an
11581158
unknown encoding.

0 commit comments

Comments
 (0)