From: Dong-hee Na Date: Fri, 13 Nov 2020 15:45:02 +0000 (+0900) Subject: [3.9] bpo-42042: Use ids attribute instead of names attribute (GH-22739) (GH-23265) X-Git-Tag: v3.9.1rc1~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f4dd87a31130b245ec4c6ded9fd6f247e700c0d;p=thirdparty%2FPython%2Fcpython.git [3.9] bpo-42042: Use ids attribute instead of names attribute (GH-22739) (GH-23265) (cherry picked from commit 09490a109faaee9cc393b52742a8575c116c56ba) Co-authored-by: Dong-hee Na --- diff --git a/Doc/tools/extensions/c_annotations.py b/Doc/tools/extensions/c_annotations.py index fa8244a8fd31..76c9d920cbe3 100644 --- a/Doc/tools/extensions/c_annotations.py +++ b/Doc/tools/extensions/c_annotations.py @@ -79,9 +79,9 @@ class Annotations(dict): 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)