Return Unicode string in Attr
This commit is contained in:
parent
2b70120760
commit
b03881de24
1 changed files with 1 additions and 1 deletions
|
|
@ -239,7 +239,7 @@ class Attr(Filter):
|
|||
|
||||
def filter(self, el):
|
||||
try:
|
||||
return el[0].attrib[self.attr]
|
||||
return u'%s' % el[0].attrib[self.attr]
|
||||
except IndexError:
|
||||
return self.default_or_raise(XPathNotFound('Unable to find link %s' % self.selector))
|
||||
except KeyError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue