bpo-42042: Use ids attribute instead of names attribute (GH-22739)

(cherry picked from commit 09490a109f)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
This commit is contained in:
Miss Islington (bot) 2020-11-13 07:30:10 -08:00 committed by GitHub
parent f37628eb71
commit 5ad468d4a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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)