mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Fix the reset() method of IncrementalNewlineDecoder to
also reset self.seennl.
This commit is contained in:
		
							parent
							
								
									5fb7c2ad0b
								
							
						
					
					
						commit
						c3d7fe0dbe
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -1116,6 +1116,7 @@ def setstate(self, state):
 | 
				
			||||||
        self.decoder.setstate((buf, flag))
 | 
					        self.decoder.setstate((buf, flag))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def reset(self):
 | 
					    def reset(self):
 | 
				
			||||||
 | 
					        self.seennl = 0
 | 
				
			||||||
        self.buffer = b''
 | 
					        self.buffer = b''
 | 
				
			||||||
        self.decoder.reset()
 | 
					        self.decoder.reset()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue