summaryrefslogtreecommitdiffstats
path: root/Modules/_lsprof.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-09-14 04:20:29 (GMT)
committerGitHub <noreply@github.com>2017-09-14 04:20:29 (GMT)
commita72d15c97f9837f6c9c6bd476a62175c942cc588 (patch)
tree104b0a1b090a9743e3efcdeae924c3ac9e306f12 /Modules/_lsprof.c
parent860839cc8e0a4a0890418f77c984955697f96828 (diff)
downloadcpython-a72d15c97f9837f6c9c6bd476a62175c942cc588.zip
cpython-a72d15c97f9837f6c9c6bd476a62175c942cc588.tar.gz
cpython-a72d15c97f9837f6c9c6bd476a62175c942cc588.tar.bz2
consistently use Py_TYPE, Py_REFCNT, and correct initializer macros (#3563)
This no-op change makes 2.7 more consistent with 3.x to ease comparison and backports.
Diffstat (limited to 'Modules/_lsprof.c')
-rw-r--r--Modules/_lsprof.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c
index 049c94d..6090c7d 100644
--- a/Modules/_lsprof.c
+++ b/Modules/_lsprof.c
@@ -817,8 +817,7 @@ Profiler(custom_timer=None, time_unit=None, subcalls=True, builtins=True)\n\
");
statichere PyTypeObject PyProfiler_Type = {
- PyObject_HEAD_INIT(NULL)
- 0, /* ob_size */
+ PyVarObject_HEAD_INIT(NULL, 0)
"_lsprof.Profiler", /* tp_name */
sizeof(ProfilerObject), /* tp_basicsize */
0, /* tp_itemsize */