File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1103,9 +1103,13 @@ Library
11031103 does not claim to support starttls. Adds the SMTP.ehlo_or_helo_if_needed()
11041104 method. Patch contributed by Bill Fenner.
11051105
1106+
11061107Extension Modules
11071108-----------------
11081109
1110+ - #1940: make it possible to use curses.filter() before curses.initscr()
1111+ as the documentation says.
1112+
11091113- Backport of _fileio module from Python 3.0.
11101114
11111115- #1087741: mmap.mmap is now a class, not a factory function. It is also
Original file line number Diff line number Diff line change @@ -1677,10 +1677,19 @@ NoArgTrueFalseFunction(has_colors)
16771677NoArgTrueFalseFunction (has_ic )
16781678NoArgTrueFalseFunction (has_il )
16791679NoArgTrueFalseFunction (isendwin )
1680- NoArgNoReturnVoidFunction (filter )
16811680NoArgNoReturnVoidFunction (flushinp )
16821681NoArgNoReturnVoidFunction (noqiflush )
16831682
1683+ static PyObject *
1684+ PyCurses_filter (PyObject * self )
1685+ {
1686+ /* not checking for PyCursesInitialised here since filter() must
1687+ be called before initscr() */
1688+ filter ();
1689+ Py_INCREF (Py_None );
1690+ return Py_None ;
1691+ }
1692+
16841693static PyObject *
16851694PyCurses_Color_Content (PyObject * self , PyObject * args )
16861695{
You can’t perform that action at this time.
0 commit comments