From 454309be6df011026ed3d85bd080c8f169471ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Srinivas=20Reddy=20Thatiparthy=20=28=E0=B0=A4=E0=B0=BE?= =?UTF-8?q?=E0=B0=9F=E0=B0=BF=E0=B0=AA=E0=B0=B0=E0=B1=8D=E0=B0=A4=E0=B0=BF?= =?UTF-8?q?=20=E0=B0=B6=E0=B1=8D=E0=B0=B0=E0=B1=80=E0=B0=A8=E0=B0=BF?= =?UTF-8?q?=E0=B0=B5=E0=B0=BE=E0=B0=B8=E0=B1=8D=20=20=E0=B0=B0=E0=B1=86?= =?UTF-8?q?=E0=B0=A1=E0=B1=8D=E0=B0=A1=E0=B0=BF=29?= Date: Thu, 23 Jan 2025 22:06:03 +0530 Subject: [PATCH] Update Python/sysmodule.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> --- Python/sysmodule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/sysmodule.c b/Python/sysmodule.c index a555f678f180f5..9c6b4ce0a6555e 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -2132,7 +2132,8 @@ sys__clear_type_cache_impl(PyObject *module) if (PyErr_WarnEx(PyExc_DeprecationWarning, "sys._clear_type_cache() is deprecated and scheduled for removal in a " "future version. Use the more general sys._clear_internal_caches() " - "function instead.", 1)) { + "function instead.", 1) < 0) + { return NULL; } PyType_ClearCache();