mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
[3.9] bpo-42042: Use ids attribute instead of names attribute (GH-22739) (GH-23265)
(cherry picked from commit 09490a109f)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
This commit is contained in:
parent
ec306a2fd9
commit
0f4dd87a31
1 changed files with 2 additions and 2 deletions
|
|
@ -79,9 +79,9 @@ def add_annotations(self, app, doctree):
|
||||||
classes=['stableabi']))
|
classes=['stableabi']))
|
||||||
if par['objtype'] != 'function':
|
if par['objtype'] != 'function':
|
||||||
continue
|
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
|
continue
|
||||||
name = par[0]['names'][0]
|
name = par[0]['ids'][0]
|
||||||
if name.startswith("c."):
|
if name.startswith("c."):
|
||||||
name = name[2:]
|
name = name[2:]
|
||||||
entry = self.get(name)
|
entry = self.get(name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue