]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Oct 2021 17:02:20 +0000 (10:02 -0700)
committerGitHub <noreply@github.com>
Thu, 14 Oct 2021 17:02:20 +0000 (20:02 +0300)
commit0bff4ccbfd3297b0adf690655d3e9ddb0033bc69
tree439b5ad3c00be6899738d124277dc79daa50377b
parent70b150a366e4d8e426f45d24a421fd70f833a8c5
[3.10] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) (GH-28943)

They support now splitting escape sequences between input chunks.

Add the third parameter "final" in codecs.unicode_escape_decode().
It is True by default to match the former behavior.
(cherry picked from commit c96d1546b11b4c282a7e21737cb1f5d16349656d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/data/python3.10.abi
Include/cpython/unicodeobject.h
Lib/encodings/unicode_escape.py
Lib/test/test_codecs.py
Misc/NEWS.d/next/Library/2021-10-14-00-19-02.bpo-45461.4LB_tJ.rst [new file with mode: 0644]
Modules/_codecsmodule.c
Modules/clinic/_codecsmodule.c.h
Objects/unicodeobject.c
Parser/string_parser.c