mirror of https://github.com/scrapy/scrapy.git
Disable smart strings in lxml XPath evaluations
This commit is contained in:
parent
d8164bd5f4
commit
1f184ed7bf
|
|
@ -85,7 +85,8 @@ class Selector(object_ref):
|
|||
return SelectorList([])
|
||||
|
||||
try:
|
||||
result = xpathev(query, namespaces=self.namespaces)
|
||||
result = xpathev(query, namespaces=self.namespaces,
|
||||
smart_strings=False)
|
||||
except etree.XPathError:
|
||||
raise ValueError("Invalid XPath: %s" % query)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue