mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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. (#31365)
This commit is contained in:
parent
e59309b9d0
commit
ffd9f8ff84
3 changed files with 14 additions and 10 deletions
|
@ -1053,6 +1053,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