summaryrefslogtreecommitdiff
path: root/Doc/tools/extensions/c_annotations.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-12-20 09:33:58 +0200
committerGitHub <noreply@github.com>2018-12-20 09:33:58 +0200
commit83dd4e87a62311cfea5fdd37e8a945b6b07bccee (patch)
tree95a7fc5e137128183d59576679ee97e889231b49 /Doc/tools/extensions/c_annotations.py
parent87ec1104b369865c3c41d2d91ac7aee29cfb632e (diff)
downloadcpython-git-83dd4e87a62311cfea5fdd37e8a945b6b07bccee.tar.gz
bpo-18085: Update refcounts.dat. (GH-11247)
Fixed some errors in refcounts.dat, remove functions removed in Python 3, and add more entries for documented functions. This will add several automatically generated notes about return values.
Diffstat (limited to 'Doc/tools/extensions/c_annotations.py')
-rw-r--r--Doc/tools/extensions/c_annotations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/extensions/c_annotations.py b/Doc/tools/extensions/c_annotations.py
index baa39f3b44..fa8244a8fd 100644
--- a/Doc/tools/extensions/c_annotations.py
+++ b/Doc/tools/extensions/c_annotations.py
@@ -87,7 +87,7 @@ class Annotations(dict):
entry = self.get(name)
if not entry:
continue
- elif entry.result_type not in ("PyObject*", "PyVarObject*"):
+ elif not entry.result_type.endswith("Object*"):
continue
if entry.result_refs is None:
rc = 'Return value: Always NULL.'