]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42042: Use ids attribute instead of names attribute (GH-22739)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 13 Nov 2020 15:30:10 +0000 (07:30 -0800)
committerGitHub <noreply@github.com>
Fri, 13 Nov 2020 15:30:10 +0000 (07:30 -0800)
(cherry picked from commit 09490a109faaee9cc393b52742a8575c116c56ba)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
Doc/tools/extensions/c_annotations.py

index fa8244a8fd318e9b68cb3178f5e2eba51788f51c..76c9d920cbe31f38ecaa6897bfc92bcab2b183ed 100644 (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)