From bf3e120d199a0620896d262c8c36821592032547 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Sat, 2 Nov 2024 08:36:51 +0300 Subject: [PATCH] Typo --- Modules/_lsprof.c | 12 ++++++------ Modules/clinic/_lsprof.c.h | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c index 53bbdd371a4eaf..3b123f4d2d8c9d 100644 --- a/Modules/_lsprof.c +++ b/Modules/_lsprof.c @@ -933,7 +933,7 @@ profiler_dealloc(ProfilerObject *op) } /*[clinic input] -_lsprof.Profiler.__init__ as profile_init +_lsprof.Profiler.__init__ as profiler_init timer: object(c_default='NULL') = None timeunit: double = 0.0 @@ -949,9 +949,9 @@ is, in seconds). [clinic start generated code]*/ static int -profile_init_impl(ProfilerObject *self, PyObject *timer, double timeunit, - int subcalls, int builtins) -/*[clinic end generated code: output=123b1ff3fc783e14 input=25202b9566e5441c]*/ +profiler_init_impl(ProfilerObject *self, PyObject *timer, double timeunit, + int subcalls, int builtins) +/*[clinic end generated code: output=ac523803ec9f9df2 input=8285ca746f96a414]*/ { if (setSubcalls(self, subcalls) < 0 || setBuiltins(self, builtins) < 0) return -1; @@ -985,10 +985,10 @@ static PyMethodDef profiler_methods[] = { }; static PyType_Slot _lsprof_profiler_type_spec_slots[] = { - {Py_tp_doc, (void *)profile_init__doc__}, + {Py_tp_doc, (void *)profiler_init__doc__}, {Py_tp_methods, profiler_methods}, {Py_tp_dealloc, profiler_dealloc}, - {Py_tp_init, profile_init}, + {Py_tp_init, profiler_init}, {Py_tp_traverse, profiler_traverse}, {0, 0} }; diff --git a/Modules/clinic/_lsprof.c.h b/Modules/clinic/_lsprof.c.h index 2a14889a2fd531..65a2577e7078db 100644 --- a/Modules/clinic/_lsprof.c.h +++ b/Modules/clinic/_lsprof.c.h @@ -303,7 +303,7 @@ _lsprof_Profiler_clear(ProfilerObject *self, PyObject *Py_UNUSED(ignored)) return _lsprof_Profiler_clear_impl(self); } -PyDoc_STRVAR(profile_init__doc__, +PyDoc_STRVAR(profiler_init__doc__, "Profiler(timer=None, timeunit=0.0, subcalls=True, builtins=True)\n" "--\n" "\n" @@ -315,11 +315,11 @@ PyDoc_STRVAR(profile_init__doc__, "is, in seconds)."); static int -profile_init_impl(ProfilerObject *self, PyObject *timer, double timeunit, - int subcalls, int builtins); +profiler_init_impl(ProfilerObject *self, PyObject *timer, double timeunit, + int subcalls, int builtins); static int -profile_init(PyObject *self, PyObject *args, PyObject *kwargs) +profiler_init(PyObject *self, PyObject *args, PyObject *kwargs) { int return_value = -1; #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE) @@ -398,9 +398,9 @@ profile_init(PyObject *self, PyObject *args, PyObject *kwargs) goto exit; } skip_optional_pos: - return_value = profile_init_impl((ProfilerObject *)self, timer, timeunit, subcalls, builtins); + return_value = profiler_init_impl((ProfilerObject *)self, timer, timeunit, subcalls, builtins); exit: return return_value; } -/*[clinic end generated code: output=1d1db1dcbb6b10d7 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=3750676abdc066ae input=a9049054013a1b77]*/