]> 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:08:42 +0000 (19:08 -0800)
committerGitHub <noreply@github.com>
Tue, 25 Jan 2022 03:08:42 +0000 (22:08 -0500)
commitc314e3e829943b186e1c894071f00c613433cfe5
tree4e8b197edae641028a96a8c19d82e927479ff752
parent3f1ea163ea54513e00e0e9d5442fee1b639825cc
bpo-46503: Prevent an assert from firing when parsing some invalid \N sequences in f-strings. (GH-30865) (30867)

* 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/pegen/parse_string.c