[clang-tools-extra] r342540 - [clang-tidy] run-clang-tidy.py - fails using python 3.7
Andi-Bogdan Postelnicu via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 19 04:52:20 PDT 2018
Author: abpostelnicu
Date: Wed Sep 19 04:52:20 2018
New Revision: 342540
URL: http://llvm.org/viewvc/llvm-project?rev=342540&view=rev
Log:
[clang-tidy] run-clang-tidy.py - fails using python 3.7
Differential Revision: https://reviews.llvm.org/D51220
Modified:
clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py
Modified: clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py?rev=342540&r1=342539&r2=342540&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py (original)
+++ clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py Wed Sep 19 04:52:20 2018
@@ -167,9 +167,9 @@ def run_tidy(args, tmpdir, build_path, q
if proc.returncode != 0:
failed_files.append(name)
with lock:
- sys.stdout.write(' '.join(invocation) + '\n' + output + '\n')
- if err > 0:
- sys.stderr.write(err + '\n')
+ sys.stdout.write(' '.join(invocation) + '\n' + output.decode('utf-8') + '\n')
+ if len(err) > 0:
+ sys.stderr.write(err.decode('utf-8') + '\n')
queue.task_done()
More information about the cfe-commits
mailing list