mirror of
https://github.com/python/cpython.git
synced 2024-11-21 21:09:37 +01:00
This commit is contained in:
parent
dcae5cd6ab
commit
19d9358437
@ -0,0 +1,2 @@
|
||||
Fix an issue in :func:`curses.napms` when :func:`curses.initscr` has not yet
|
||||
been called. Patch by Bénédikt Tran.
|
@ -3815,8 +3815,11 @@ static int
|
||||
_curses_napms_impl(PyObject *module, int ms)
|
||||
/*[clinic end generated code: output=5f292a6a724491bd input=c6d6e01f2f1df9f7]*/
|
||||
{
|
||||
PyCursesStatefulInitialised(module);
|
||||
|
||||
if (!_PyCursesStatefulCheckFunction(module,
|
||||
curses_initscr_called,
|
||||
"initscr")) {
|
||||
return -1;
|
||||
}
|
||||
return napms(ms);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user