aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/objectify.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-09-09 11:30:13 +0300
committerFilipp Lepalaan <f@230.to>2013-09-09 11:30:13 +0300
commitaa8c28fe4a3ccb12223d0fb691308d63c4fd7918 (patch)
tree5259ed76a28a491db8b247bdae9b605eb3d177b8 /gsxws/objectify.py
parent8030271870fe174cb7f47677ef7cafa595d9ddc5 (diff)
downloadpy-gsxws-aa8c28fe4a3ccb12223d0fb691308d63c4fd7918.tar.gz
py-gsxws-aa8c28fe4a3ccb12223d0fb691308d63c4fd7918.tar.bz2
py-gsxws-aa8c28fe4a3ccb12223d0fb691308d63c4fd7918.zip
Coerce text values to unicode
Diffstat (limited to 'gsxws/objectify.py')
-rw-r--r--gsxws/objectify.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gsxws/objectify.py b/gsxws/objectify.py
index 007a523..0fe2e1f 100644
--- a/gsxws/objectify.py
+++ b/gsxws/objectify.py
@@ -92,7 +92,8 @@ class GsxElement(objectify.ObjectifiedElement):
if isinstance(result, objectify.StringElement):
name = result.tag
- result = result.text
+ result = result.text or ''
+ result = unicode(result)
if not result:
return