From 9cf7e748f4d68079dae74264b32936063764c6ff Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Sat, 17 Oct 2020 23:36:46 +0900 Subject: [PATCH] bpo-42042: Use ids attribute instead of names attribute --- Doc/tools/extensions/c_annotations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/tools/extensions/c_annotations.py b/Doc/tools/extensions/c_annotations.py index fa8244a8fd318e9..76c9d920cbe31f3 100644 --- a/Doc/tools/extensions/c_annotations.py +++ b/Doc/tools/extensions/c_annotations.py @@ -79,9 +79,9 @@ def add_annotations(self, app, doctree): classes=['stableabi'])) if par['objtype'] != 'function': continue - if not par[0].has_key('names') or not par[0]['names']: + if not par[0].has_key('ids') or not par[0]['ids']: continue - name = par[0]['names'][0] + name = par[0]['ids'][0] if name.startswith("c."): name = name[2:] entry = self.get(name)