Skip to content

Commit 5ad468d

Browse files
bpo-42042: Use ids attribute instead of names attribute (GH-22739)
(cherry picked from commit 09490a1) Co-authored-by: Dong-hee Na <[email protected]>
1 parent f37628e commit 5ad468d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tools/extensions/c_annotations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ def add_annotations(self, app, doctree):
7979
classes=['stableabi']))
8080
if par['objtype'] != 'function':
8181
continue
82-
if not par[0].has_key('names') or not par[0]['names']:
82+
if not par[0].has_key('ids') or not par[0]['ids']:
8383
continue
84-
name = par[0]['names'][0]
84+
name = par[0]['ids'][0]
8585
if name.startswith("c."):
8686
name = name[2:]
8787
entry = self.get(name)

0 commit comments

Comments
 (0)