Compat for python < 3.8

This commit is contained in:
Kovid Goyal 2021-02-05 09:23:54 +05:30
parent e969dea3b7
commit 0e483f81ac
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -538,7 +538,7 @@ def system_paths_on_macos() -> List[str]:
return entries
@lru_cache
@lru_cache(maxsize=32)
def find_exe(name: str) -> Optional[str]:
import shutil
ans = shutil.which(name)