mirror of
https://github.com/python/cpython.git
synced 2025-08-09 03:19:15 +00:00
bpo-46762: Fix an assert failure in f-strings where > or < is the last character if the f-string is missing a trailing right brace. (GH-31365)
(cherry picked from commit ffd9f8ff84
)
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
This commit is contained in:
parent
c292118ef3
commit
a657bff349
3 changed files with 14 additions and 10 deletions
|
@ -1060,6 +1060,8 @@ x = (
|
|||
"f'{{{'",
|
||||
"f'{{}}{'",
|
||||
"f'{'",
|
||||
"f'x{<'", # See bpo-46762.
|
||||
"f'x{>'",
|
||||
])
|
||||
|
||||
# But these are just normal strings.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue