From 1506a5c0cdd5e7c6f107d3341341cd08ee0c33f5 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 5 May 2013 16:04:42 +0200 Subject: [PATCH] Fix string output in XMLMap --- morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss.py b/morss.py index fde21b0..8fdd966 100644 --- a/morss.py +++ b/morss.py @@ -228,7 +228,7 @@ class XMLMap(object): else: out = self._xml.__getattr__(tag) - return out.text.encode('utf-8') if self._str else out + return unicode(out).encode('utf-8') if self._str else out def __getitem__(self, tag): if self.__contains__(tag):