mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Reformat the exception message by going through a list.
This commit is contained in:
		
							parent
							
								
									5df2e614e6
								
							
						
					
					
						commit
						d9bfeac330
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -35,7 +35,9 @@ def testCompileLibrary(self): | |||
|                     try: | ||||
|                         compiler.compile(buf, basename, "exec") | ||||
|                     except Exception, e: | ||||
|                         e.args[0] += "[in file %s]" % basename | ||||
|                         args = list(e.args) | ||||
|                         args[0] += "[in file %s]" % basename | ||||
|                         e.args = tuple(args) | ||||
|                         raise | ||||
| 
 | ||||
|     def testNewClassSyntax(self): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Martin v. Löwis
						Martin v. Löwis