Skip to content

Commit 7e73df8

Browse files
authored
Embed cssselect reference
Include `.. _cssselect: https://pypi.python.org/pypi/cssselect/` in the source code comments where it is used. While not necessary for the Parsel documentation itself (because the documentation page including this comment has this reference already at the bottom), it allows other projects inheriting documentation from Parsel (e.g. Scrapy’s Selector class) to inherit this documentation without missing the reference URL (`…/scrapy/scrapy/selector/unified.py:docstring of scrapy.Selector.css:5: WARNING: Unknown target name: "cssselect".`).
1 parent 8fc608e commit 7e73df8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

parsel/selector.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ def css(self, query):
258258
259259
In the background, CSS queries are translated into XPath queries using
260260
`cssselect`_ library and run ``.xpath()`` method.
261+
262+
.. _cssselect: https://pypi.python.org/pypi/cssselect/
261263
"""
262264
return self.xpath(self._css2xpath(query))
263265

0 commit comments

Comments
 (0)