From aa8c28fe4a3ccb12223d0fb691308d63c4fd7918 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 9 Sep 2013 11:30:13 +0300 Subject: Coerce text values to unicode --- gsxws/objectify.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3