mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-11 03:39:59 +00:00
Fix format.py for python 3.6 (#1337)
This commit is contained in:
parent
97e795fc0e
commit
d7ea63c75d
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ def get_clang_executable(allowed_executables: List[str]):
|
||||||
|
|
||||||
|
|
||||||
def get_tidy_version(tidy_executable: str):
|
def get_tidy_version(tidy_executable: str):
|
||||||
tidy_version_run = subprocess.run([tidy_executable, "--version"], stdout=subprocess.PIPE, text=True)
|
tidy_version_run = subprocess.run([tidy_executable, "--version"], stdout=subprocess.PIPE, universal_newlines=True)
|
||||||
match = re.search(r"LLVM version ([0-9]+)", tidy_version_run.stdout)
|
match = re.search(r"LLVM version ([0-9]+)", tidy_version_run.stdout)
|
||||||
return int(match.group(1))
|
return int(match.group(1))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue