mirror of https://github.com/scrapy/scrapy.git
fix support to legacy _root argument
This commit is contained in:
parent
ce21884a97
commit
c7b29d118d
|
|
@ -35,7 +35,9 @@ class Selector(ParselSelector, object_ref):
|
|||
|
||||
def __init__(self, response=None, text=None, type=None, root=None, **kwargs):
|
||||
st = _st(response, type or self._default_type)
|
||||
root = kwargs.get('root', root)
|
||||
|
||||
# supporting legacy _root argument
|
||||
root = kwargs.get('_root', root)
|
||||
|
||||
self._parser = _ctgroup[st]['_parser']
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue