diff options
author | Dong-hee Na <donghee.na@python.org> | 2020-11-13 15:45:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-13 15:45:02 (GMT) |
commit | 0f4dd87a31130b245ec4c6ded9fd6f247e700c0d (patch) | |
tree | 7167b831f799d5472da0a8cff597bd09ae79ff4d /Doc/tools | |
parent | ec306a2fd91d8b961b2a80c080dd2262bb17d862 (diff) | |
download | cpython-0f4dd87a31130b245ec4c6ded9fd6f247e700c0d.zip cpython-0f4dd87a31130b245ec4c6ded9fd6f247e700c0d.tar.gz cpython-0f4dd87a31130b245ec4c6ded9fd6f247e700c0d.tar.bz2 |
[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 <donghee.na@python.org>
Diffstat (limited to 'Doc/tools')
-rw-r--r-- | Doc/tools/extensions/c_annotations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tools/extensions/c_annotations.py b/Doc/tools/extensions/c_annotations.py index fa8244a..76c9d92 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) |