Skip to content

Commit b05e9b6

Browse files
authored
bpo-44522: Fix inaccurate information in open() function (GH-27650)
- Use "Low surrogate code units" instead of "Unicode Private Use Area"
1 parent 41bb564 commit b05e9b6

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
@@ -1208,9 +1208,9 @@ are always available. They are listed here in alphabetical order.
12081208
* ``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted
12091209
where there is malformed data.
12101210

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

0 commit comments

Comments
 (0)