mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	errors is an attribute in the incremental decoder
not an argument.
This commit is contained in:
		
							parent
							
								
									6b6e2bb8b1
								
							
						
					
					
						commit
						c6f5b3ad6c
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -214,9 +214,9 @@ def encode(self, input, final=False): | ||||||
| 
 | 
 | ||||||
| class IncrementalDecoder(codecs.IncrementalDecoder): | class IncrementalDecoder(codecs.IncrementalDecoder): | ||||||
|     def decode(self, input, final=False): |     def decode(self, input, final=False): | ||||||
|         if errors not in ('strict', 'replace', 'ignore'): |         if self.errors not in ('strict', 'replace', 'ignore'): | ||||||
|             raise UnicodeError, "Unsupported error handling "+errors |             raise UnicodeError, "Unsupported error handling "+self.errors | ||||||
|         return punycode_decode(input, errors) |         return punycode_decode(input, self.errors) | ||||||
| 
 | 
 | ||||||
| class StreamWriter(Codec,codecs.StreamWriter): | class StreamWriter(Codec,codecs.StreamWriter): | ||||||
|     pass |     pass | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Walter Dörwald
						Walter Dörwald