diff options
| author | Benjamin Peterson <benjamin@python.org> | 2017-09-14 04:20:29 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-14 04:20:29 (GMT) |
| commit | a72d15c97f9837f6c9c6bd476a62175c942cc588 (patch) | |
| tree | 104b0a1b090a9743e3efcdeae924c3ac9e306f12 /Modules/_lsprof.c | |
| parent | 860839cc8e0a4a0890418f77c984955697f96828 (diff) | |
| download | cpython-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.c | 3 |
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 */ |
