aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-07-10 12:40:38 +0200
committerGitHub <noreply@github.com>2020-07-10 12:40:38 +0200
commit8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1 (patch)
tree697757da0c635614b16aafc81c3ea1172a634a53 /Tools
parentbpo-36346: Do not use legacy Unicode C API in ctypes. (#21429) (diff)
downloadcpython-8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1.tar.gz
cpython-8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1.tar.bz2
cpython-8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1.zip
bpo-39573: Use the Py_TYPE() macro (GH-21433)
Replace obj->ob_type with Py_TYPE(obj).
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/combinerefs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/combinerefs.py b/Tools/scripts/combinerefs.py
index 49ccca73909..848bae5658c 100755
--- a/Tools/scripts/combinerefs.py
+++ b/Tools/scripts/combinerefs.py
@@ -33,7 +33,7 @@ or
if the refcount changed.
-typename is object->ob_type->tp_name, extracted from the second PYTHONDUMPREFS
+typename is Py_TYPE(object)->tp_name, extracted from the second PYTHONDUMPREFS
output block.
repr is repr(object), extracted from the first PYTHONDUMPREFS output block.