diff options
author | Filipp Lepalaan <f@230.to> | 2013-09-09 11:30:13 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-09-09 11:30:13 +0300 |
commit | aa8c28fe4a3ccb12223d0fb691308d63c4fd7918 (patch) | |
tree | 5259ed76a28a491db8b247bdae9b605eb3d177b8 /gsxws | |
parent | 8030271870fe174cb7f47677ef7cafa595d9ddc5 (diff) | |
download | py-gsxws-aa8c28fe4a3ccb12223d0fb691308d63c4fd7918.tar.gz py-gsxws-aa8c28fe4a3ccb12223d0fb691308d63c4fd7918.tar.bz2 py-gsxws-aa8c28fe4a3ccb12223d0fb691308d63c4fd7918.zip |
Coerce text values to unicode
Diffstat (limited to 'gsxws')
-rw-r--r-- | gsxws/objectify.py | 3 |
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 |