mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Removed redundant max() call.
Change suggested by Nick Coghlan.
This commit is contained in:
		
							parent
							
								
									4e6531e7de
								
							
						
					
					
						commit
						f0c0ff6ce4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -833,7 +833,7 @@ def seek(self, pos, whence=0):
 | 
				
			||||||
        if whence == 0:
 | 
					        if whence == 0:
 | 
				
			||||||
            if pos < 0:
 | 
					            if pos < 0:
 | 
				
			||||||
                raise ValueError("negative seek position %r" % (pos,))
 | 
					                raise ValueError("negative seek position %r" % (pos,))
 | 
				
			||||||
            self._pos = max(0, pos)
 | 
					            self._pos = pos
 | 
				
			||||||
        elif whence == 1:
 | 
					        elif whence == 1:
 | 
				
			||||||
            self._pos = max(0, self._pos + pos)
 | 
					            self._pos = max(0, self._pos + pos)
 | 
				
			||||||
        elif whence == 2:
 | 
					        elif whence == 2:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue