mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-110093: Replace trivial Py_BuildValue() with direct C API call (GH-110094)
This commit is contained in:
parent
ff4e53cb74
commit
59ea0f523e
13 changed files with 33 additions and 32 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue