mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fix comment.
This commit is contained in:
		
							parent
							
								
									bc8e642c1b
								
							
						
					
					
						commit
						a4eb2d56a4
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -306,8 +306,8 @@ def readline(self, size=None, keepends=True): | ||||||
|         while True: |         while True: | ||||||
|             data = self.read(readsize) |             data = self.read(readsize) | ||||||
|             if data: |             if data: | ||||||
|                 # If we're at a "\r" read one # extra character # (which might |                 # If we're at a "\r" read one extra character (which might | ||||||
|                 # be a "\n") to get a proper # line ending. If the stream is |                 # be a "\n") to get a proper line ending. If the stream is | ||||||
|                 # temporarily exhausted we return the wrong line ending. |                 # temporarily exhausted we return the wrong line ending. | ||||||
|                 if data.endswith(u"\r"): |                 if data.endswith(u"\r"): | ||||||
|                     data += self.read(size=1, chars=1) |                     data += self.read(size=1, chars=1) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Walter Dörwald
						Walter Dörwald