diff options
| author | Jean-François B <2589111+jfbu@users.noreply.github.com> | 2022-06-25 22:15:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-25 21:15:04 +0100 |
| commit | 5a24fec8de10323de7b46f4d3606765ffc246dd9 (patch) | |
| tree | e57f181eebcd99d7b0d87506e9b5b8dc38f8a676 /sphinx/util | |
| parent | 4b482334a28d0706ba4bd68d51be9c041c135798 (diff) | |
| download | sphinx-git-5a24fec8de10323de7b46f4d3606765ffc246dd9.tar.gz | |
Fix build failure for Docutils 0.18.0 (#10597)
Diffstat (limited to 'sphinx/util')
| -rw-r--r-- | sphinx/util/docutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/docutils.py b/sphinx/util/docutils.py index e1fd78096..b2944ec28 100644 --- a/sphinx/util/docutils.py +++ b/sphinx/util/docutils.py @@ -550,9 +550,9 @@ class SphinxTranslator(nodes.NodeVisitor): # Node.findall() is a new interface to traverse a doctree since docutils-0.18. -# This applies a patch docutils-0.17 or older to be available Node.findall() +# This applies a patch to docutils up to 0.18 inclusive to provide Node.findall() # method to use it from our codebase. -if docutils.__version_info__ < (0, 18): +if docutils.__version_info__ <= (0, 18): def findall(self, *args, **kwargs): return iter(self.traverse(*args, **kwargs)) |
