Skip to content

Commit 39f102f

Browse files
committed
nits(cosmetics)
1 parent b96b542 commit 39f102f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Modules/_cursesmodule.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,8 @@ _PyCursesSetError(cursesmodule_state *state,
235235
assert(!PyErr_Occurred());
236236
if (python_funcname == NULL && curses_funcname == NULL) {
237237
PyErr_SetString(state->error, catchall_ERR);
238-
return;
239238
}
240-
if (python_funcname == NULL) {
239+
else if (python_funcname == NULL) {
241240
PyErr_Format(state->error, CURSES_ERROR_FORMAT, curses_funcname);
242241
}
243242
else if (curses_funcname == NULL) {
@@ -301,7 +300,7 @@ PyCursesSetError_ForWin_From(PyCursesWindowObject *win,
301300
* have a direct access to the module's state, '_curses.error'
302301
* is imported on demand.
303302
*/
304-
static inline int
303+
static int
305304
_PyCursesCheckFunction(int called, const char *funcname)
306305
{
307306
if (called == TRUE) {
@@ -323,8 +322,9 @@ _PyCursesCheckFunction(int called, const char *funcname)
323322
*
324323
* The exception type is obtained from the 'module' state.
325324
*/
326-
static inline int
327-
_PyCursesStatefulCheckFunction(PyObject *module, int called, const char *funcname)
325+
static int
326+
_PyCursesStatefulCheckFunction(PyObject *module,
327+
int called, const char *funcname)
328328
{
329329
if (called == TRUE) {
330330
return 1;

0 commit comments

Comments
 (0)