diff options
Diffstat (limited to 'giscanner/ccompiler.py')
-rw-r--r-- | giscanner/ccompiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py index 515b4227..9b27f0e1 100644 --- a/giscanner/ccompiler.py +++ b/giscanner/ccompiler.py @@ -285,7 +285,7 @@ class CCompiler(object): proc = subprocess.Popen([self.compiler_cmd, '-print-search-dirs'], stdout=subprocess.PIPE) o, e = proc.communicate() - for line in o.splitlines(): + for line in o.decode('ascii').splitlines(): if line.startswith('libraries: '): libsearch = line[len('libraries: '):].split(';') @@ -313,7 +313,7 @@ class CCompiler(object): proc = subprocess.Popen(args + [implib], stdout=subprocess.PIPE) o, e = proc.communicate() - for line in o.splitlines(): + for line in o.decode('ascii').splitlines(): if self.check_is_msvc(): # On Visual Studio, dumpbin -symbols something.lib gives the # filename of DLL without the '.dll' extension that something.lib |