From 9c1c7a9631cd9dfe7e2a2b3782614c1e42d8d55f Mon Sep 17 00:00:00 2001 From: byundojin Date: Thu, 12 Sep 2024 09:53:35 +0900 Subject: [PATCH] remove unnecessary assertion --- Modules/_io/winconsoleio.c | 5 ----- 1 file changed, 5 deletions(-) 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;