bpo-46762: Fix an assert failure in f-strings where > or < is the las… · python/cpython@ffd9f8f · GitHub
Skip to content

Commit ffd9f8f

Browse files
authored
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)
1 parent e59309b commit ffd9f8f

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

‎Lib/test/test_fstring.py‎

Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix an assert failure in debug builds when a '<', '>', or '=' is the last
2+
character in an f-string that's missing a closing right brace.

‎Parser/string_parser.c‎

Lines changed: 10 additions & 10 deletions

0 commit comments

Comments
 (0)