diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2022-07-30 21:53:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-30 22:53:31 +0200 |
| commit | d7ea63c75d7ea4979040210b19d840f01a7477d2 (patch) | |
| tree | c016b0a2333b8e4b20ce81379df57a8b8fc72d02 /format.py | |
| parent | 97e795fc0e17a9df08f915d15736a4e389f7e894 (diff) | |
Fix format.py for python 3.6 (#1337)
Diffstat (limited to 'format.py')
| -rwxr-xr-x | format.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -41,7 +41,7 @@ def get_clang_executable(allowed_executables: List[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) return int(match.group(1)) |
