summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-12-20 07:33:58 (GMT)
committerGitHub <noreply@github.com>2018-12-20 07:33:58 (GMT)
commit83dd4e87a62311cfea5fdd37e8a945b6b07bccee (patch)
tree95a7fc5e137128183d59576679ee97e889231b49 /Doc/tools
parent87ec1104b369865c3c41d2d91ac7aee29cfb632e (diff)
downloadcpython-83dd4e87a62311cfea5fdd37e8a945b6b07bccee.zip
cpython-83dd4e87a62311cfea5fdd37e8a945b6b07bccee.tar.gz
cpython-83dd4e87a62311cfea5fdd37e8a945b6b07bccee.tar.bz2
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')
-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 baa39f3..fa8244a 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.'