]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42042: Use ids attribute instead of names attribute (GH-22739)
authorDong-hee Na <donghee.na@python.org>
Fri, 13 Nov 2020 15:15:17 +0000 (00:15 +0900)
committerGitHub <noreply@github.com>
Fri, 13 Nov 2020 15:15:17 +0000 (00:15 +0900)
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)