summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2016-03-17 17:51:32 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2016-03-17 17:51:32 +0800
commit77ce0c87f983e6e58ee422128bf9438da01e5a99 (patch)
treeafee8c68165f706bc7d358439ef4120cf4e8e8f5
parent8987bb5ab65134e575e3d8831585469a11ecea66 (diff)
downloadgobject-introspection-77ce0c87f983e6e58ee422128bf9438da01e5a99.tar.gz
ccompiler.py: MSVC builds: Fix running on Python 3.x
When resolving libraries, open the temp file generated by dumpbin with 'r' mode rather than 'rb', since this is a text file.
-rw-r--r--giscanner/ccompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index 25823382..57df9d6a 100644
--- a/giscanner/ccompiler.py
+++ b/giscanner/ccompiler.py
@@ -328,7 +328,7 @@ class CCompiler(object):
output_flag = ['-out:' + tmp_filename]
proc = subprocess.call(args + [implib] + output_flag,
stdout=subprocess.PIPE)
- with open(tmp_filename, 'rb') as tmp_fileobj:
+ with open(tmp_filename, 'r') as tmp_fileobj:
for line in tmp_fileobj.read().splitlines():
if '__IMPORT_DESCRIPTOR_' in line: