https://github.com/python/cpython/commit/39aa415296c9ebb488eaf5952be00ef2d7ab306f
commit: 39aa415296c9ebb488eaf5952be00ef2d7ab306f
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-03-09T14:53:52+01:00
summary:
gh-145376: Fix _cursesmodule.c build on FreeBSD/macOS (#145669)
files:
M Modules/_cursesmodule.c
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index dd96f9aa62b85b..fe9d6fe2763f36 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -1132,7 +1132,9 @@ _curses_window_addstr_impl(PyCursesWindowObject *self,
int group_left_1,
else
#endif
{
+#ifdef HAVE_NCURSESW
assert(wstr == NULL);
+#endif
const char *str = PyBytes_AS_STRING(bytesobj);
if (use_xy) {
rtn = mvwaddstr(self->win,y,x,str);
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]