From f670a9022bca263907d5c3eeb5dc237779aa289e Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Sat, 20 Feb 2021 15:18:46 +0900 Subject: [PATCH] bpo-40522: Use PyThreadState_Get() in _lsprof.c --- Modules/_lsprof.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c index c32699cb8ad580..1058d052cb4dfc 100644 --- a/Modules/_lsprof.c +++ b/Modules/_lsprof.c @@ -671,7 +671,7 @@ profiler_enable(ProfilerObject *self, PyObject *args, PyObject *kwds) return NULL; } - PyThreadState *tstate = PyThreadState_GET(); + PyThreadState *tstate = PyThreadState_Get(); if (_PyEval_SetProfile(tstate, profiler_callback, (PyObject*)self) < 0) { return NULL; } @@ -705,7 +705,7 @@ Stop collecting profiling information.\n\ static PyObject* profiler_disable(ProfilerObject *self, PyObject* noarg) { - PyThreadState *tstate = PyThreadState_GET(); + PyThreadState *tstate = PyThreadState_Get(); if (_PyEval_SetProfile(tstate, NULL, NULL) < 0) { return NULL; } @@ -735,7 +735,7 @@ static void profiler_dealloc(ProfilerObject *op) { if (op->flags & POF_ENABLED) { - PyThreadState *tstate = PyThreadState_GET(); + PyThreadState *tstate = PyThreadState_Get(); if (_PyEval_SetProfile(tstate, NULL, NULL) < 0) { PyErr_WriteUnraisable((PyObject *)op); } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy