Mercurial > cpython-lru_cache-weakref
diff Modules/threadmodule.c @ 43855:ee081609cee8
Added some additional checks for sys.std?? is None, see #1440
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Thu, 15 Nov 2007 02:26:46 +0000 |
| parents | e70cdce0e8b2 |
| children | f324631462a2 |
line wrap: on
line diff
--- a/Modules/threadmodule.c Thu Nov 15 02:15:53 2007 +0000 +++ b/Modules/threadmodule.c Thu Nov 15 02:26:46 2007 +0000 @@ -429,7 +429,7 @@ PySys_WriteStderr( "Unhandled exception in thread started by "); file = PySys_GetObject("stderr"); - if (file) + if (file != NULL && file != Py_None) PyFile_WriteObject(boot->func, file, 0); else PyObject_Print(boot->func, stderr, 0);
