mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	file was the old arg name from an earlier patch. command matches the implementation
This commit is contained in:
		
							parent
							
								
									de74de5d5d
								
							
						
					
					
						commit
						e3f3940fc3
					
				
					 2 changed files with 44 additions and 6 deletions
				
			
		|  | @ -972,8 +972,8 @@ def get_terminal_size(fallback=(80, 24)): | |||
|     return os.terminal_size((columns, lines)) | ||||
| 
 | ||||
| def which(cmd, mode=os.F_OK | os.X_OK, path=None): | ||||
|     """Given a file, mode, and a path string, return the path which conforms | ||||
|     to the given mode on the path.""" | ||||
|     """Given a command, mode, and a path string, return the path which | ||||
|     conforms to the given mode on the path.""" | ||||
|     # Check that a given file can be accessed with the correct mode. | ||||
|     # Additionally check that `file` is not a directory, as on Windows | ||||
|     # directories pass the os.access check. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brian Curtin
						Brian Curtin