Old python compat

This commit is contained in:
Kovid Goyal 2021-10-07 13:51:55 +05:30
parent f4b6cc6628
commit 9289ebf9c9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -292,7 +292,7 @@ int main(void) {
def is_gcc(cc: Iterable[str]) -> bool:
@lru_cache
@lru_cache()
def f(cc: Tuple[str]) -> bool:
raw = subprocess.check_output(cc + ('--version',)).decode('utf-8').splitlines()[0]
return '(GCC)' in raw.split()