mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Fix typos.
This commit is contained in:
		
							parent
							
								
									7a6dc139de
								
							
						
					
					
						commit
						714f87821f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -312,9 +312,9 @@ def readline(self, size=None, keepends=True): | |||
|                 self.atcr = data.endswith(u"\r") | ||||
|                 # If we're at a "\r" (and are allowed to read more), read one | ||||
|                 # extra character (which might be a "\n") to get a proper | ||||
|                 # line ending (If the stream is temporarily exhausted we return | ||||
|                 # line ending. (If the stream is temporarily exhausted we return | ||||
|                 # the wrong line ending, but at least we won't generate a bogus | ||||
|                 # second line. | ||||
|                 # second line.) | ||||
|                 if self.atcr and size is None: | ||||
|                     data += self.read(size=1, chars=1) | ||||
|                     self.atcr = data.endswith(u"\r") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Walter Dörwald
						Walter Dörwald