aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-07-14 21:29:03 +0300
committerFilipp Lepalaan <f@230.to>2013-07-14 21:29:03 +0300
commit636ecdff0ab1a01414e7186ffeb8316cdefc545f (patch)
tree87623862077eb9fa7f64a7c7288fc47e2aa6fa2f
parent2eadde880621c39477d931387c9e2c934c5030da (diff)
downloadpy-gsxws-636ecdff0ab1a01414e7186ffeb8316cdefc545f.tar.gz
py-gsxws-636ecdff0ab1a01414e7186ffeb8316cdefc545f.tar.bz2
py-gsxws-636ecdff0ab1a01414e7186ffeb8316cdefc545f.zip
Added __unicode__ to GsxElement
-rw-r--r--gsxws/objectify.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gsxws/objectify.py b/gsxws/objectify.py
index d001a15..979ec33 100644
--- a/gsxws/objectify.py
+++ b/gsxws/objectify.py
@@ -35,8 +35,11 @@ TZMAP = {
class GsxElement(StringElement):
+ def __unicode__(self):
+ return self.pyval
+
def __str__(self):
- return str(self.pyval)
+ return unicode(self).encode('utf-8')
class GsxDateElement(GsxElement):