]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec...
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 14 Oct 2021 10:17:00 +0000 (13:17 +0300)
committerGitHub <noreply@github.com>
Thu, 14 Oct 2021 10:17:00 +0000 (13:17 +0300)
commitc96d1546b11b4c282a7e21737cb1f5d16349656d
tree5e6e49378a4207591316f08e6b7fd42d4e3ff40c
parente71662c1ae817e728233ce93882c5b20f4c31ebc
bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939)

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.
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