mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	bpo-46339: Fix crash in the parser when computing error text for multi-line f-strings (GH-30529)
Automerge-Triggered-By: GH:pablogsal
This commit is contained in:
		
							parent
							
								
									43c5c1369c
								
							
						
					
					
						commit
						cedec19be8
					
				
					 3 changed files with 18 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -280,6 +280,12 @@ def baz():
 | 
			
		|||
            }
 | 
			
		||||
            \"\"\"
 | 
			
		||||
            }'''""", 5, 17)
 | 
			
		||||
        check('''f"""
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            {
 | 
			
		||||
            6
 | 
			
		||||
            0="""''', 5, 13)
 | 
			
		||||
 | 
			
		||||
        # Errors thrown by symtable.c
 | 
			
		||||
        check('x = [(yield i) for i in range(3)]', 1, 7)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue