From c7b6c50f29fac4971e7271ac649ee3b7ef3deac7 Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Sun, 16 Jun 2013 12:58:48 -0400 Subject: Describe 'surrogateescape' in the documentation. Also, improve some docstring descriptions of the 'errors' parameter. Closes #14015. --- Lib/codecs.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/codecs.py') diff --git a/Lib/codecs.py b/Lib/codecs.py index 48d4c9c739..6a6eb900c7 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 -- cgit v1.2.1