mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	No need to assign the results of expressions used only for side effects.
This commit is contained in:
		
							parent
							
								
									7d4b759bd9
								
							
						
					
					
						commit
						84fedf7f06
					
				
					 8 changed files with 7 additions and 9 deletions
				
			
		|  | @ -15,7 +15,7 @@ | |||
| def exists(path): | ||||
|     """Test whether a path exists.  Returns False for broken symbolic links""" | ||||
|     try: | ||||
|         st = os.stat(path) | ||||
|         os.stat(path) | ||||
|     except os.error: | ||||
|         return False | ||||
|     return True | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl