Because the data types like str and byte changed in python 3.x we get this error when running run-clang-tidy:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "run-clang-tidy.py", line 178, in run_tidy sys.stdout.write(' '.join(invocation) + '\n' + output + '\n')
TypeError: can only concatenate str (not "bytes") to str
please use len(err) here instead, python3 does not work.