]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec...
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 14 Oct 2021 17:04:19 +0000 (20:04 +0300)
committerGitHub <noreply@github.com>
Thu, 14 Oct 2021 17:04:19 +0000 (20:04 +0300)
commit39aa98346d5dd8ac591a7cafb467af21c53f1e5d
treed363b62f299171467fce0cd3e1fe155c2ca41a09
parentd413c503636cde2a6ab0ada25dccb0134633a8e6
bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944)

They support now splitting escape sequences between input chunks.

Add the third parameter "final" in codecs.raw_unicode_escape_decode().
It is True by default to match the former behavior.
Include/cpython/unicodeobject.h
Lib/encodings/raw_unicode_escape.py
Lib/test/test_codecs.py
Misc/NEWS.d/next/Library/2021-10-14-13-31-19.bpo-45467.Q7Ma6A.rst [new file with mode: 0644]
Modules/_codecsmodule.c
Modules/clinic/_codecsmodule.c.h
Objects/unicodeobject.c