[Python-checkins] bpo-42042: Use ids attribute instead of names attribute (GH-22739)
miss-islington
webhook-mailer at python.org
Fri Nov 13 10:30:20 EST 2020
https://github.com/python/cpython/commit/5ad468d4a8cfeb8a320659016964c23735c12a07
commit: 5ad468d4a8cfeb8a320659016964c23735c12a07
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020-11-13T07:30:10-08:00
summary:
bpo-42042: Use ids attribute instead of names attribute (GH-22739)
(cherry picked from commit 09490a109faaee9cc393b52742a8575c116c56ba)
Co-authored-by: Dong-hee Na <donghee.na at python.org>
files:
M Doc/tools/extensions/c_annotations.py
diff --git a/Doc/tools/extensions/c_annotations.py b/Doc/tools/extensions/c_annotations.py
index fa8244a8fd318..76c9d920cbe31 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)
More information about the Python-checkins
mailing list