mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-101819: Fix inverted debug preprocessor check in winconsoleio.c (#104388)
This commit is contained in:
parent
1670729383
commit
ddc0e70a32
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ _io__WindowsConsoleIO___init___impl(winconsoleio *self, PyObject *nameobj,
|
|||
int fd_is_own = 0;
|
||||
HANDLE handle = NULL;
|
||||
|
||||
#ifdef NDEBUG
|
||||
#ifndef NDEBUG
|
||||
_PyIO_State *state = find_io_state_by_def(Py_TYPE(self));
|
||||
assert(PyObject_TypeCheck(self, state->PyWindowsConsoleIO_Type));
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue