mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Added some additional checks for sys.std?? is None, see #1440
This commit is contained in:
parent
70021d7164
commit
2be03734f8
7 changed files with 17 additions and 12 deletions
|
@ -2010,7 +2010,7 @@ PyCurses_setupterm(PyObject* self, PyObject *args, PyObject* keywds)
|
|||
|
||||
sys_stdout = PySys_GetObject("stdout");
|
||||
|
||||
if (sys_stdout == NULL) {
|
||||
if (sys_stdout == NULL || sys_stdout == Py_None) {
|
||||
PyErr_SetString(
|
||||
PyCursesError,
|
||||
"lost sys.stdout");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue