Try to improve support for bogus xml feed
parent
b34ecb8ad3
commit
32514941b4
2
morss.py
2
morss.py
|
@ -228,7 +228,7 @@ class XMLMap(object):
|
||||||
else:
|
else:
|
||||||
out = self._xml.__getattr__(tag)
|
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):
|
def __getitem__(self, tag):
|
||||||
if self.__contains__(tag):
|
if self.__contains__(tag):
|
||||||
|
|
Loading…
Reference in New Issue