Skip to content

Commit 4f252c1

Browse files
authored
Fix default value of 'errors' to None in escape_decode function signature
1 parent dc9d790 commit 4f252c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/codecs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,13 +1452,13 @@ to :class:`bytes` mappings. They are not supported by :meth:`bytes.decode`
14521452
| | | gzip. | :meth:`zlib.decompress` |
14531453
+----------------------+------------------+------------------------------+------------------------------+
14541454

1455-
.. function:: codecs.escape_encode(input, errors='strict')
1455+
.. function:: codecs.escape_encode(input, errors=None)
14561456

14571457
Encode *input* using escape sequences. Similar to how :func:`repr` on bytes
14581458
produces escaped byte values. Returns a tuple of the encoded bytes and
14591459
the length consumed.
14601460

1461-
.. function:: codecs.escape_decode(input, errors='strict')
1461+
.. function:: codecs.escape_decode(input, errors=None)
14621462

14631463
Decode *input* from escape sequences back to the original bytes.
14641464
Returns a tuple of the decoded bytes and the length consumed.

0 commit comments

Comments
 (0)