@@ -1861,7 +1861,7 @@ PyCursesWindow_getstr(PyObject *op, PyObject *args)
18611861 PyCursesWindowObject * self = _PyCursesWindowObject_CAST (op );
18621862 int rtn , use_xy = 0 , y = 0 , x = 0 ;
18631863 unsigned int n = max_buf_size - 1 ;
1864- PyObject * result ;
1864+ PyObject * res ;
18651865
18661866 if (!curses_clinic_parse_optional_xy_n (args , & y , & x , & n , & use_xy ,
18671867 "_curses.window.instr" ))
@@ -1870,11 +1870,11 @@ PyCursesWindow_getstr(PyObject *op, PyObject *args)
18701870 }
18711871
18721872 n = Py_MIN (n , max_buf_size - 1 );
1873- result = PyBytes_FromStringAndSize (NULL , n + 1 );
1874- if (result == NULL ) {
1873+ res = PyBytes_FromStringAndSize (NULL , n + 1 );
1874+ if (res == NULL ) {
18751875 return NULL ;
18761876 }
1877- char * buf = PyBytes_AS_STRING (result );
1877+ char * buf = PyBytes_AS_STRING (res );
18781878
18791879 if (use_xy ) {
18801880 Py_BEGIN_ALLOW_THREADS
@@ -1894,11 +1894,11 @@ PyCursesWindow_getstr(PyObject *op, PyObject *args)
18941894 }
18951895
18961896 if (rtn == ERR ) {
1897- Py_DECREF (result );
1897+ Py_DECREF (res );
18981898 return Py_GetConstant (Py_CONSTANT_EMPTY_BYTES );
18991899 }
1900- _PyBytes_Resize (& result , strlen (buf )); // result is set to NULL on failure
1901- return result ;
1900+ _PyBytes_Resize (& res , strlen (buf )); // 'res' is set to NULL on failure
1901+ return res ;
19021902}
19031903
19041904/*[clinic input]
@@ -2051,7 +2051,7 @@ PyCursesWindow_instr(PyObject *op, PyObject *args)
20512051 PyCursesWindowObject * self = _PyCursesWindowObject_CAST (op );
20522052 int rtn , use_xy = 0 , y = 0 , x = 0 ;
20532053 unsigned int n = max_buf_size - 1 ;
2054- PyObject * result ;
2054+ PyObject * res ;
20552055
20562056 if (!curses_clinic_parse_optional_xy_n (args , & y , & x , & n , & use_xy ,
20572057 "_curses.window.instr" ))
@@ -2060,11 +2060,11 @@ PyCursesWindow_instr(PyObject *op, PyObject *args)
20602060 }
20612061
20622062 n = Py_MIN (n , max_buf_size - 1 );
2063- result = PyBytes_FromStringAndSize (NULL , n + 1 );
2064- if (result == NULL ) {
2063+ res = PyBytes_FromStringAndSize (NULL , n + 1 );
2064+ if (res == NULL ) {
20652065 return NULL ;
20662066 }
2067- char * buf = PyBytes_AS_STRING (result );
2067+ char * buf = PyBytes_AS_STRING (res );
20682068
20692069 if (use_xy ) {
20702070 rtn = mvwinnstr (self -> win , y , x , buf , n );
@@ -2074,11 +2074,11 @@ PyCursesWindow_instr(PyObject *op, PyObject *args)
20742074 }
20752075
20762076 if (rtn == ERR ) {
2077- Py_DECREF (result );
2077+ Py_DECREF (res );
20782078 return Py_GetConstant (Py_CONSTANT_EMPTY_BYTES );
20792079 }
2080- _PyBytes_Resize (& result , strlen (buf )); // result is set to NULL on failure
2081- return result ;
2080+ _PyBytes_Resize (& res , strlen (buf )); // 'res' is set to NULL on failure
2081+ return res ;
20822082}
20832083
20842084/*[clinic input]
0 commit comments