summaryrefslogtreecommitdiff
path: root/python/introspect_parser.py
diff options
context:
space:
mode:
authorRobert McQueen <robot101@debian.org>2005-10-24 18:29:50 +0000
committerRobert McQueen <robot101@debian.org>2005-10-24 18:29:50 +0000
commitfe27cfc360733fd08636d5e0d349552ed75edb4b (patch)
treef93d038028f4c4f94c8afc5039386f156c22a0f5 /python/introspect_parser.py
parent2cb54f49a89cabe19342719f2e00031b4a4a12e9 (diff)
2005-10-24 Robert McQueen <robot101@debian.org>
* python/dbus_bindings.pyx (String, MessageIter): make D-Bus strings derive from unicode instead of str, and encode/decode UTF-8 when marshalling/unmarshalling bus messages * python/introspect_parser.py: encode introspection data as UTF-8 before passing the buffer into libxml2 * test/python/test-client.py: add unicode test strings * test/data/valid-service-files/.cvsignore, test/python/.cvsignore: ignore generated python test files
Diffstat (limited to 'python/introspect_parser.py')
-rw-r--r--python/introspect_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/introspect_parser.py b/python/introspect_parser.py
index 6e94ccc..40cae1e 100644
--- a/python/introspect_parser.py
+++ b/python/introspect_parser.py
@@ -8,7 +8,7 @@ def process_introspection_data(data):
XMLREADER_START_ELEMENT_NODE_TYPE = 1
XMLREADER_END_ELEMENT_NODE_TYPE = 15
- stream = cStringIO.StringIO(data)
+ stream = cStringIO.StringIO(data.encode('utf-8'))
input_source = libxml2.inputBuffer(stream)
reader = input_source.newTextReader("urn:introspect")