[all-commits] [llvm/llvm-project] d4f967: [analyzer] decode() a bytes object to make Python3...
Jeremy Morse via All-commits
all-commits at lists.llvm.org
Wed Mar 4 09:12:58 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d4f9675b5509e26573058318682a9ed5d7aaf320
https://github.com/llvm/llvm-project/commit/d4f9675b5509e26573058318682a9ed5d7aaf320
Author: Jeremy Morse <jeremy.morse at sony.com>
Date: 2020-03-04 (Wed, 04 Mar 2020)
Changed paths:
M clang/test/Analysis/check-analyzer-fixit.py
Log Message:
-----------
[analyzer] decode() a bytes object to make Python3 happy
The output of subprocess.check_output is decode()'d through the rest of
this python program, but one appears to have been missed for the output
of the call to "clang -print-file-name=include".
On Windows, with Python 3.6, this leads to the 'args' array being a mix of
bytes and strings, which causes exceptions later down the line.
I can't easily test with python2 on Windows, but python2 on Ubuntu 18.04
was happy with this change.
More information about the All-commits
mailing list