Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2e4c2 commit 2c146bfCopy full SHA for 2c146bf
1 file changed
Modules/_hotshot.c
@@ -1180,8 +1180,11 @@ profiler_start(ProfilerObject *self, PyObject *args)
1180
PyObject *result = NULL;
1181
1182
if (PyArg_ParseTuple(args, ":start")) {
1183
- if (is_available(self))
+ if (is_available(self)) {
1184
do_start(self);
1185
+ result = Py_None;
1186
+ Py_INCREF(result);
1187
+ }
1188
}
1189
return result;
1190
@@ -1198,8 +1201,11 @@ profiler_stop(ProfilerObject *self, PyObject *args)
1198
1201
if (PyArg_ParseTuple(args, ":stop")) {
1199
1202
if (!self->active)
1200
1203
PyErr_SetString(ProfilerError, "profiler not active");
- else
1204
+ else {
1205
do_stop(self);
1206
1207
1208
1209
1210
1211
0 commit comments