mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Make Traceback header conform to new traceback ("innermost last" ->
"most recent call last").
This commit is contained in:
		
							parent
							
								
									e0c182fb5f
								
							
						
					
					
						commit
						7dd06966cb
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -141,7 +141,7 @@ class InteractiveInterpreter:
 | 
			
		|||
            del tblist[:1]
 | 
			
		||||
            list = traceback.format_list(tblist)
 | 
			
		||||
            if list:
 | 
			
		||||
                list.insert(0, "Traceback (innermost last):\n")
 | 
			
		||||
                list.insert(0, "Traceback (most recent call last):\n")
 | 
			
		||||
            list[len(list):] = traceback.format_exception_only(type, value)
 | 
			
		||||
        finally:
 | 
			
		||||
            tblist = tb = None
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue