diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-14 11:40:50 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-14 13:33:12 +0900 |
commit | faedcc48ccb942b9a7b758b699b30f0d026c0771 (patch) | |
tree | ea3669f2656676fd4d4bda9691b324129202a3aa /sphinx/util/nodes.py | |
parent | 1a54a7229c37dd7618033552d5893e6a429d2bc3 (diff) | |
download | sphinx-git-faedcc48ccb942b9a7b758b699b30f0d026c0771.tar.gz |
Fix #6887: Sphinx crashes with docutils-0.16b0
Diffstat (limited to 'sphinx/util/nodes.py')
-rw-r--r-- | sphinx/util/nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/nodes.py b/sphinx/util/nodes.py index 52e43c2e2..53b4d056e 100644 --- a/sphinx/util/nodes.py +++ b/sphinx/util/nodes.py @@ -148,7 +148,7 @@ def apply_source_workaround(node: Element) -> None: logger.debug('[i18n] PATCH: %r to have rawsource: %s', get_full_module_name(node), repr_domxml(node)) # strip classifier from rawsource of term - for classifier in reversed(node.parent.traverse(nodes.classifier)): + for classifier in reversed(list(node.parent.traverse(nodes.classifier))): node.rawsource = re.sub(r'\s*:\s*%s' % re.escape(classifier.astext()), '', node.rawsource) |