Skip to content

Commit

Permalink
Replace "Unicode string" with just "string".
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR committed Oct 26, 2022
1 parent baf3f90 commit e26aa4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cssselect/parser.py
Expand Up @@ -519,7 +519,7 @@ def parse(css: str) -> List[Selector]:
you can skip this and use :meth:`~GenericTranslator.css_to_xpath`.
:param css:
A *group of selectors* as an Unicode string.
A *group of selectors* as a string.
:raises:
:class:`SelectorSyntaxError` on invalid selectors.
:returns:
Expand Down
6 changes: 3 additions & 3 deletions cssselect/xpath.py
Expand Up @@ -195,7 +195,7 @@ def css_to_xpath(self, css: str, prefix: str = "descendant-or-self::") -> str:
about "real" elements.
:param css:
A *group of selectors* as an Unicode string.
A *group of selectors* as a string.
:param prefix:
This string is prepended to the XPath expression for each selector.
The default makes selectors scoped to the context node’s subtree.
Expand All @@ -204,7 +204,7 @@ def css_to_xpath(self, css: str, prefix: str = "descendant-or-self::") -> str:
:class:`ExpressionError` on unknown/unsupported selectors,
including pseudo-elements.
:returns:
The equivalent XPath 1.0 expression as an Unicode string.
The equivalent XPath 1.0 expression as a string.
"""
return " | ".join(
Expand Down Expand Up @@ -235,7 +235,7 @@ def selector_to_xpath(
:raises:
:class:`ExpressionError` on unknown/unsupported selectors.
:returns:
The equivalent XPath 1.0 expression as an Unicode string.
The equivalent XPath 1.0 expression as a string.
"""
tree = getattr(selector, "parsed_tree", None)
Expand Down

0 comments on commit e26aa4d

Please sign in to comment.