diff options
author | Jean-François B <2589111+jfbu@users.noreply.github.com> | 2022-06-30 12:19:02 +0200 |
---|---|---|
committer | Jean-François B <2589111+jfbu@users.noreply.github.com> | 2022-06-30 12:19:02 +0200 |
commit | b9736f23484b16feef86208ab00dd947c54446ba (patch) | |
tree | 60d6a1d8065e0b2abd1bd87b86112a2bc90476ae /sphinx/util/docutils.py | |
parent | c327f090d420619290622d132724c0a1a77b36f8 (diff) | |
parent | a7ef63a1fd462b72638c7887faa07dbe1d7a02a6 (diff) | |
download | sphinx-git-b9736f23484b16feef86208ab00dd947c54446ba.tar.gz |
Merge branch '5.0.x' into 5.x
Diffstat (limited to 'sphinx/util/docutils.py')
-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)) |