diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-10-14 18:23:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 18:23:39 (GMT) |
commit | 4641afef661e6a22bc64194bd334b161c95edfe2 (patch) | |
tree | d053338921b36eb41bd0a1880c801a33cbec7878 /Misc | |
parent | 0bff4ccbfd3297b0adf690655d3e9ddb0033bc69 (diff) | |
download | cpython-4641afef661e6a22bc64194bd334b161c95edfe2.zip cpython-4641afef661e6a22bc64194bd334b161c95edfe2.tar.gz cpython-4641afef661e6a22bc64194bd334b161c95edfe2.tar.bz2 |
[3.10] bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) (GH-28952)
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.
(cherry picked from commit 39aa98346d5dd8ac591a7cafb467af21c53f1e5d)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-10-14-13-31-19.bpo-45467.Q7Ma6A.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-10-14-13-31-19.bpo-45467.Q7Ma6A.rst b/Misc/NEWS.d/next/Library/2021-10-14-13-31-19.bpo-45467.Q7Ma6A.rst new file mode 100644 index 0000000..f2c0ae4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-10-14-13-31-19.bpo-45467.Q7Ma6A.rst @@ -0,0 +1,2 @@ +Fix incremental decoder and stream reader in the "raw-unicode-escape" codec. +Previously they failed if the escape sequence was split. |