mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Old python compat
This commit is contained in:
2
setup.py
2
setup.py
@@ -292,7 +292,7 @@ int main(void) {
|
|||||||
|
|
||||||
def is_gcc(cc: Iterable[str]) -> bool:
|
def is_gcc(cc: Iterable[str]) -> bool:
|
||||||
|
|
||||||
@lru_cache
|
@lru_cache()
|
||||||
def f(cc: Tuple[str]) -> bool:
|
def f(cc: Tuple[str]) -> bool:
|
||||||
raw = subprocess.check_output(cc + ('--version',)).decode('utf-8').splitlines()[0]
|
raw = subprocess.check_output(cc + ('--version',)).decode('utf-8').splitlines()[0]
|
||||||
return '(GCC)' in raw.split()
|
return '(GCC)' in raw.split()
|
||||||
|
|||||||
Reference in New Issue
Block a user