[PR #9442/ec585392 backport][stable-10] Docs: fix its vs. it's (#9458)

Docs: fix its vs. it's (#9442)

* Fix its vs. it's.

* Improvements from review.

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Improve formulations.

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
(cherry picked from commit ec585392e5)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2024-12-29 14:13:18 +01:00 committed by GitHub
parent 60d51f7b49
commit 98a956a9d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
60 changed files with 88 additions and 88 deletions

View file

@ -432,7 +432,7 @@ def is_attribute(tree, xpath, namespaces):
An xpath attribute search will only match one item"""
# lxml 5.1.1 removed etree._ElementStringResult, so we can no longer simply assume it's there
# lxml 5.1.1 removed etree._ElementStringResult, so we can no longer simply assume it is there
# (https://github.com/lxml/lxml/commit/eba79343d0e7ad1ce40169f60460cdd4caa29eb3)
ElementStringResult = getattr(etree, '_ElementStringResult', None)