summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-08-09 14:35:11 (GMT)
committerGitHub <noreply@github.com>2021-08-09 14:35:11 (GMT)
commitc79aa427c0b0c8a09e5c22a5420baf837054f509 (patch)
tree1e3edae1e37c6f0307ddbaec05b6c265ade308f4 /Doc
parent0f02993b2c7b3343df05fcf8b5f0e6a900f195b3 (diff)
downloadcpython-c79aa427c0b0c8a09e5c22a5420baf837054f509.zip
cpython-c79aa427c0b0c8a09e5c22a5420baf837054f509.tar.gz
cpython-c79aa427c0b0c8a09e5c22a5420baf837054f509.tar.bz2
bpo-44522: Fix inaccurate information in open() function (GH-27650)
- Use "Low surrogate code units" instead of "Unicode Private Use Area" (cherry picked from commit b05e9b63fcfcd4bd7a6434fa9f9a7028d12f91c4) Co-authored-by: meowmeowmeowcat <meowmeowcat1211@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/functions.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index f99ea88..652e30c 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1208,9 +1208,9 @@ are always available. They are listed here in alphabetical order.
* ``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted
where there is malformed data.
- * ``'surrogateescape'`` will represent any incorrect bytes as code
- points in the Unicode Private Use Area ranging from U+DC80 to
- U+DCFF. These private code points will then be turned back into
+ * ``'surrogateescape'`` will represent any incorrect bytes as low
+ surrogate code units ranging from U+DC80 to U+DCFF.
+ These surrogate code units will then be turned back into
the same bytes when the ``surrogateescape`` error handler is used
when writing data. This is useful for processing files in an
unknown encoding.