summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew Kuchling <amk@amk.ca>2013-06-16 16:58:48 (GMT)
committerAndrew Kuchling <amk@amk.ca>2013-06-16 16:58:48 (GMT)
commitc7b6c50f29fac4971e7271ac649ee3b7ef3deac7 (patch)
tree84ce5a8e35e7d3da929f85c9f025beb2ddc05d7a /Lib
parent893f2ffc7c8a110f069bb05c66e60632cc49cbef (diff)
downloadcpython-c7b6c50f29fac4971e7271ac649ee3b7ef3deac7.zip
cpython-c7b6c50f29fac4971e7271ac649ee3b7ef3deac7.tar.gz
cpython-c7b6c50f29fac4971e7271ac649ee3b7ef3deac7.tar.bz2
Describe 'surrogateescape' in the documentation.
Also, improve some docstring descriptions of the 'errors' parameter. Closes #14015.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/codecs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py
index 48d4c9c..6a6eb90 100644
--- a/Lib/codecs.py
+++ b/Lib/codecs.py
@@ -105,6 +105,7 @@ class Codec:
Python will use the official U+FFFD REPLACEMENT
CHARACTER for the builtin Unicode codecs on
decoding and '?' on encoding.
+ 'surrogateescape' - replace with private codepoints U+DCnn.
'xmlcharrefreplace' - Replace with the appropriate XML
character reference (only for encoding).
'backslashreplace' - Replace with backslashed escape sequences