gh-110093: Replace trivial Py_BuildValue() with direct C API call (GH-110094)

This commit is contained in:
Serhiy Storchaka 2023-10-20 18:08:41 +03:00 committed by GitHub
parent ff4e53cb74
commit 59ea0f523e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 33 additions and 32 deletions

View file

@ -3673,7 +3673,7 @@ _curses_mousemask_impl(PyObject *module, unsigned long newmask)
#endif
/*[clinic input]
_curses.napms
_curses.napms -> int
ms: int
Duration in milliseconds.
@ -3682,13 +3682,13 @@ _curses.napms
Sleep for specified time.
[clinic start generated code]*/
static PyObject *
static int
_curses_napms_impl(PyObject *module, int ms)
/*[clinic end generated code: output=a40a1da2e39ea438 input=20cd3af2b6900f56]*/
/*[clinic end generated code: output=5f292a6a724491bd input=c6d6e01f2f1df9f7]*/
{
PyCursesInitialised;
return Py_BuildValue("i", napms(ms));
return napms(ms);
}