mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fix the signature of log_error(). (A subclass that did the right thing
was getting complaints from pychecker.)
This commit is contained in:
		
							parent
							
								
									9ae562efb1
								
							
						
					
					
						commit
						833e9611b3
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -396,7 +396,7 @@ def log_request(self, code='-', size='-'): | |||
|         self.log_message('"%s" %s %s', | ||||
|                          self.requestline, str(code), str(size)) | ||||
| 
 | ||||
|     def log_error(self, *args): | ||||
|     def log_error(self, format, *args): | ||||
|         """Log an error. | ||||
| 
 | ||||
|         This is called when a request cannot be fulfilled.  By | ||||
|  | @ -408,7 +408,7 @@ def log_error(self, *args): | |||
| 
 | ||||
|         """ | ||||
| 
 | ||||
|         self.log_message(*args) | ||||
|         self.log_message(format, *args) | ||||
| 
 | ||||
|     def log_message(self, format, *args): | ||||
|         """Log an arbitrary message. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum