]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46503: Prevent an assert from firing when parsing some invalid \N sequences in...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 25 Jan 2022 03:13:11 +0000 (19:13 -0800)
committerGitHub <noreply@github.com>
Tue, 25 Jan 2022 03:13:11 +0000 (22:13 -0500)
commit894e8c13484822458d53cc77c9265b7a88450a4b
tree908ff84d817bbb98db7c531a26482765d271c590
parenteaeb99468045b863d2dd3da3e3d1c3c9c78e1254
bpo-46503: Prevent an assert from firing when parsing some invalid \N sequences in f-strings. (GH-30865) (GH-30866)

* bpo-46503: Prevent an assert from firing.  Also fix one nearby tiny PEP-7 nit.

* Added blurb.
(cherry picked from commit 0daf72194bd4e31de7f12020685bb39a14d6f45e)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Lib/test/test_fstring.py
Misc/NEWS.d/next/Core and Builtins/2022-01-24-21-24-41.bpo-46503.4UrPsE.rst [new file with mode: 0644]
Parser/string_parser.c