summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-11-13 15:30:10 (GMT)
committerGitHub <noreply@github.com>2020-11-13 15:30:10 (GMT)
commit5ad468d4a8cfeb8a320659016964c23735c12a07 (patch)
tree952ce6d083d02eec32918fa985411e169a8873af
parentf37628eb7117f222de24a6931aa7639e668cb7b0 (diff)
downloadcpython-5ad468d4a8cfeb8a320659016964c23735c12a07.zip
cpython-5ad468d4a8cfeb8a320659016964c23735c12a07.tar.gz
cpython-5ad468d4a8cfeb8a320659016964c23735c12a07.tar.bz2
bpo-42042: Use ids attribute instead of names attribute (GH-22739)
(cherry picked from commit 09490a109faaee9cc393b52742a8575c116c56ba) Co-authored-by: Dong-hee Na <donghee.na@python.org>
-rw-r--r--Doc/tools/extensions/c_annotations.py4
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)