Skip to content

Commit a5abd19

Browse files
committed
make Parsel's Selector more private, remove direct dependency of ParselSelectorList
1 parent 766c255 commit a5abd19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scrapy/selector/unified.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
import warnings
6-
from parsel import Selector as ParselSelector, SelectorList as ParselSelectorList
6+
from parsel import Selector as _ParselSelector
77
from scrapy.utils.trackref import object_ref
88
from scrapy.utils.python import to_bytes
99
from scrapy.http import HtmlResponse, XmlResponse
@@ -26,7 +26,7 @@ def _response_from_text(text, st):
2626
body=to_bytes(text, 'utf-8'))
2727

2828

29-
class SelectorList(ParselSelectorList, object_ref):
29+
class SelectorList(_ParselSelector.selectorlist_cls, object_ref):
3030
@deprecated(use_instead='.extract()')
3131
def extract_unquoted(self):
3232
return [x.extract_unquoted() for x in self]
@@ -40,7 +40,7 @@ def select(self, xpath):
4040
return self.xpath(xpath)
4141

4242

43-
class Selector(ParselSelector, object_ref):
43+
class Selector(_ParselSelector, object_ref):
4444

4545
__slots__ = ['response']
4646
selectorlist_cls = SelectorList

0 commit comments

Comments
 (0)