summaryrefslogtreecommitdiff
path: root/giscanner/shlibs.py
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-04-28 23:35:41 -0700
committerColin Walters <walters@verbum.org>2015-09-29 23:16:32 -0400
commit0211bda3da384818c0f99b5a468022c7529fed7e (patch)
tree4bcdc08fa0c6898d8a9411a73f370254d562eac5 /giscanner/shlibs.py
parent374e7e8c62358225be65e4b33dc591003550ab50 (diff)
downloadgobject-introspection-0211bda3da384818c0f99b5a468022c7529fed7e.tar.gz
giscanner: Use StringIO instead of cStringIO in Python 2
Replace usage of the Python 2 cStringIO module with StringIO and conditionally use io.StringIO for Python 3. This is needed to build up a unicode version of the XML since cStringIO does not support unicode. Add XMLWriter.get_encoded_xml() which returns a utf-8 encoded bytes object of the XML data. Open files for reading/writing in binary mode since we explicitly encode and decode as utf-8. https://bugzilla.gnome.org/show_bug.cgi?id=679438
Diffstat (limited to 'giscanner/shlibs.py')
0 files changed, 0 insertions, 0 deletions