Merge pull request #79 from seriyps/master

~10x speed-up for libxml2 XPathSelector
This commit is contained in:
Pablo Hoffman 2012-01-15 19:32:59 -08:00
commit fc52d8d5cf
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class XPathSelector(object_ref):
__slots__ = ['doc', 'xmlNode', 'expr', '__weakref__']
def __init__(self, response=None, text=None, node=None, parent=None, expr=None):
if parent:
if parent is not None:
self.doc = parent.doc
self.xmlNode = node
elif response: