Skip to content

Commit 776bce0

Browse files
Fix docs building issue with new Sphinx
Sphinx 4 appears to have changed the arity of some returns. Cope by accessing fields directly rather than pattern matching. Signed-off-by: Robbie Harwood <[email protected]>
1 parent 314c3d1 commit 776bce0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/custom_extensions/gssapi_find_missing.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ def _missing_ref(app, env, node, contnode):
2828
raw_opts = []
2929
non_raw_opts = []
3030
for opt in options:
31-
full_name, type_info = opt
32-
lib_name, mod_name, _mod_type = type_info
31+
type_info = opt[1]
32+
mod_name = type_info.docname
33+
3334
if mod_name.startswith('gssapi.raw'):
3435
raw_opts.append(opt)
3536
else:
@@ -52,8 +53,10 @@ def _missing_ref(app, env, node, contnode):
5253
else:
5354
choice = options[0]
5455

55-
choice_name, choice_info = choice
56-
gssapi, choice_mod, choice_type = choice_info
56+
choice_name = choice[0]
57+
choice_info = choice[1]
58+
choice_mod = choice_info.node_id
59+
choice_type = choice_info.objtype
5760

5861
if choice_type == 'module':
5962
return env.domains['py']._make_module_refnode(

0 commit comments

Comments
 (0)