Skip to content

Commit c4e0c27

Browse files
committed
Revert "fix doc build for docutils >= 0.16"
This reverts commit 6f5f7fe.
1 parent 3e6ee9a commit c4e0c27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/sphinx/mongoc_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def find_node(doctree, klass):
8888
if not matches:
8989
raise IndexError("No %s in %s" % (klass, doctree))
9090

91-
return next(matches)
91+
return matches[0]
9292

9393
class VersionList(Directive):
9494
""" Custom directive to generate the version list from an environment variable """

0 commit comments

Comments
 (0)