summaryrefslogtreecommitdiff
path: root/giscanner/gdumpparser.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/gdumpparser.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/gdumpparser.py')
-rw-r--r--giscanner/gdumpparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/gdumpparser.py b/giscanner/gdumpparser.py
index e7ccf575..3d9720d0 100644
--- a/giscanner/gdumpparser.py
+++ b/giscanner/gdumpparser.py
@@ -144,7 +144,7 @@ class GDumpParser(object):
"""Load the library (or executable), returning an XML
blob containing data gleaned from GObject's primitive introspection."""
in_path = os.path.join(self._binary.tmpdir, 'functions.txt')
- with open(in_path, 'w') as f:
+ with open(in_path, 'w', encoding='utf-8') as f:
for func in self._get_type_functions:
f.write('get-type:')
f.write(func)