From 32514941b4affa215dc0b2886bd30acba6434ec4 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 5 May 2013 15:32:57 +0200 Subject: [PATCH] Try to improve support for bogus xml feed --- morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss.py b/morss.py index 6a4536f..6efbe21 100644 --- a/morss.py +++ b/morss.py @@ -228,7 +228,7 @@ class XMLMap(object): else: out = self._xml.__getattr__(tag) - return unicode(out) if self._str else out + return out.text.encode('utf-8') if self._str else out def __getitem__(self, tag): if self.__contains__(tag):