mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	err() should be varargs -- and fix one call
This commit is contained in:
		
							parent
							
								
									ef4ee62a0f
								
							
						
					
					
						commit
						064a62bc8a
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -38,7 +38,7 @@ | ||||||
| 
 | 
 | ||||||
| # Function to print to stderr | # Function to print to stderr | ||||||
| # | # | ||||||
| def err(args): | def err(*args): | ||||||
| 	savestdout = sys.stdout | 	savestdout = sys.stdout | ||||||
| 	try: | 	try: | ||||||
| 		sys.stdout = sys.stderr | 		sys.stdout = sys.stderr | ||||||
|  | @ -213,8 +213,8 @@ def generate(type, func, database): | ||||||
| 			# Can't happen | 			# Can't happen | ||||||
| 			raise arg_error, ('bad a_mode', a_mode) | 			raise arg_error, ('bad a_mode', a_mode) | ||||||
| 		if (a_mode == 'r' and a_sub) or a_sub == 'retval': | 		if (a_mode == 'r' and a_sub) or a_sub == 'retval': | ||||||
| 			e = 'Function', func, 'too complicated:' | 			err('Function', func, 'too complicated:', | ||||||
| 			err(e + (a_type, a_mode, a_factor, a_sub)) | 			    a_type, a_mode, a_factor, a_sub) | ||||||
| 			print '/* XXX Too complicated to generate code for */' | 			print '/* XXX Too complicated to generate code for */' | ||||||
| 			return | 			return | ||||||
| 	# | 	# | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum