Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-125843: indicate which C function caused acurses.error
#125844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
03fc9c5
3436f9b
73ce26c
cfe5468
a8845ee
1b1230d
55a491a
758dfe5
3a3964b
92e62cf
4d8f47f
5b8ff99
43d2e99
12f0b30
eaaad71
b96b542
39f102f
6bc9c3e
5addb78
34583e0
236bea5
8188179
9e6c83e
3989ddd
bf54774
34a1c31
6be3a15
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1076,7 +1076,6 @@ _curses_window_addstr_impl(PyCursesWindowObject *self, int group_left_1, | ||
if (strtype == 0) { | ||
return NULL; | ||
} | ||
if (use_attr) { | ||
attr_old = getattrs(self->win); | ||
(void)wattrset(self->win,attr); | ||
@@ -1406,7 +1405,7 @@ _curses_window_box_impl(PyCursesWindowObject *self, int group_right_1, | ||
return NULL; | ||
} | ||
} | ||
(void)box(self->win,ch1,ch2); | ||
picnixz marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
Py_RETURN_NONE; | ||
} | ||
@@ -1504,15 +1503,14 @@ PyCursesWindow_ChgAt(PyObject *op, PyObject *args) | ||
attr = attr & A_ATTRIBUTES; | ||
if (use_xy) { | ||
rtn = mvwchgat(self->win,y,x,num,attr,color,NULL); | ||
curses_funcname = "mvwchgat"; | ||
(void)touchline(self->win,y,1); | ||
picnixz marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
} else { | ||
getyx(self->win,y,x); | ||
rtn = wchgat(self->win,num,attr,color,NULL); | ||
curses_funcname = "wchgat"; | ||
(void)touchline(self->win,y,1); | ||
picnixz marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
} | ||
return PyCursesCheckERR_ForWin_From(self, rtn, "chgat", curses_funcname); | ||
} | ||
@@ -1788,7 +1786,7 @@ _curses_window_get_wch_impl(PyCursesWindowObject *self, int group_right_1, | ||
Py_BEGIN_ALLOW_THREADS | ||
if (!group_right_1) { | ||
ct = wget_wch(self->win ,&rtn); | ||
} | ||
else { | ||
ct = mvwget_wch(self->win, y, x, &rtn); | ||
@@ -3761,17 +3759,13 @@ _curses_setupterm_impl(PyObject *module, const char *term, int fd) | ||
} | ||
if (!curses_setupterm_called && setupterm((char *)term, fd, &err) == ERR) { | ||
const char *s = "setupterm: unknown error"; | ||
picnixz marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
if (err == 0) { | ||
s = "setupterm: could not find terminal"; | ||
} else if (err == -1) { | ||
s = "setupterm: could not find terminfo database"; | ||
} | ||
cursesmodule_state *state = get_cursesmodule_state(module); | ||
PyErr_SetString(state->error, s); | ||
Uh oh!
There was an error while loading.Please reload this page.