diff --git a/Modules/_io/winconsoleio.c b/Modules/_io/winconsoleio.c index ec5c298066a587..a37a1b8e593818 100644 --- a/Modules/_io/winconsoleio.c +++ b/Modules/_io/winconsoleio.c @@ -1054,11 +1054,6 @@ _io__WindowsConsoleIO_write_impl(winconsoleio *self, PyTypeObject *cls, */ len = WideCharToMultiByte(CP_UTF8, 0, wbuf, n, NULL, 0, NULL, NULL); - if (len) { - wlen = MultiByteToWideChar(CP_UTF8, 0, b->buf, len, - NULL, 0); - assert(wlen == len); - } } } else res = 0;