From 40fe4a5fd215bf004b2e688792c4efb382315216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9n=C3=A9dikt=20Tran?= <10796600+picnixz@users.noreply.github.com> Date: Sat, 24 Aug 2024 15:29:15 +0200 Subject: [PATCH] reduce diff --- Modules/_cursesmodule.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index ac144075502252..d2dc1a0b48b9f7 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -4026,10 +4026,10 @@ static PyObject * _curses_update_lines_cols_impl(PyObject *module) /*[clinic end generated code: output=423f2b1e63ed0f75 input=5f065ab7a28a5d90]*/ { - CHECK_RET_FLAG_OR_ABORT(update_lines_cols()); + if (!update_lines_cols()) { + return NULL; + } Py_RETURN_NONE; -abort: - return NULL; } #endif