Skip to content

Commit 6f5f7fe

Browse files
committed
fix doc build for docutils >= 0.16
1 parent bda6377 commit 6f5f7fe

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 matches[0]
91+
return next(matches)
9292

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

0 commit comments

Comments
 (0)