summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2020-04-16 20:03:30 +0200
committerJan Dittberner <jandd@cacert.org>2020-04-16 20:03:30 +0200
commite59a2cd7d4557878b7f6ab7303fa15c3519876d2 (patch)
tree974566bc5a627ff0ca60480720a69247e3e94c41 /source
parentf0ef5b7372de04f621a0d16486632c410ef223fc (diff)
downloadcacert-codedocs-e59a2cd7d4557878b7f6ab7303fa15c3519876d2.tar.gz
cacert-codedocs-e59a2cd7d4557878b7f6ab7303fa15c3519876d2.tar.xz
cacert-codedocs-e59a2cd7d4557878b7f6ab7303fa15c3519876d2.zip
Update dependencies
Update to Python 3.7 and latest versions of direct and transitive dependencies. Fix a deprecation warning related to docutils returning an iterator for document.traverse in project Sphinx extension.
Diffstat (limited to 'source')
-rw-r--r--source/sphinxext/cacert.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/sphinxext/cacert.py b/source/sphinxext/cacert.py
index 22153fa..d6ec9b9 100644
--- a/source/sphinxext/cacert.py
+++ b/source/sphinxext/cacert.py
@@ -40,7 +40,7 @@ class SourceFileRole(roles.XRefRole):
indexnode = addnodes.index()
targetid = 'index-%s' % env.new_serialno('index')
targetnode = nodes.target('', '', ids=[targetid])
- doctitle = document.traverse(nodes.title)[0].astext()
+ doctitle = list(document.traverse(nodes.title))[0].astext()
idxtext = "%s; %s" % (node.astext(), doctitle)
idxtext2 = "%s; %s" % ('sourcefile', node.astext())
indexnode['entries'] = [