Fix string output in XMLMap
parent
adebe23232
commit
1506a5c0cd
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 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):
|
def __getitem__(self, tag):
|
||||||
if self.__contains__(tag):
|
if self.__contains__(tag):
|
||||||
|
|
Loading…
Reference in New Issue