summaryrefslogtreecommitdiff
path: root/giscanner/ccompiler.py
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-11-07 18:55:48 +0000
committerChristoph Reiter <reiter.christoph@gmail.com>2020-11-07 18:55:48 +0000
commit10b1a869da09d260e54b6f28a0d2c0e3015deee4 (patch)
tree51408ccc16a4a486c7d18254b41d9c6b2b3f9638 /giscanner/ccompiler.py
parent579e84b92cf3ec9cb10d9b9b0683181b05569cb1 (diff)
parentdd378ee46082862f711629d40ed33f944d1e3259 (diff)
downloadgobject-introspection-10b1a869da09d260e54b6f28a0d2c0e3015deee4.tar.gz
Merge branch 'open-cleanup' into 'master'
open cleanup: explicit encoding, close fds See merge request GNOME/gobject-introspection!250
Diffstat (limited to 'giscanner/ccompiler.py')
-rw-r--r--giscanner/ccompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index bd1aa78e..cb97e76f 100644
--- a/giscanner/ccompiler.py
+++ b/giscanner/ccompiler.py
@@ -387,7 +387,7 @@ class CCompiler(object):
output_flag = ['-out:' + tmp_filename]
proc = subprocess.call(args + [implib] + output_flag,
stdout=subprocess.PIPE)
- with open(tmp_filename, 'r') as tmp_fileobj:
+ with open(tmp_filename, 'r', encoding='utf-8') as tmp_fileobj:
for line in tmp_fileobj.read().splitlines():
if '__IMPORT_DESCRIPTOR_' in line: