File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -943,7 +943,7 @@ gen_getstate(PyObject *self, void *Py_UNUSED(ignored))
943943
944944 assert (frame_state >= 0 &&
945945 (size_t )frame_state < Py_ARRAY_LENGTH (state_strings ));
946- return Py_NewRef ( state_strings [frame_state ]) ;
946+ return state_strings [frame_state ];
947947}
948948
949949static PyObject *
@@ -1330,7 +1330,7 @@ cr_getstate(PyObject *self, void *Py_UNUSED(ignored))
13301330
13311331 assert (frame_state >= 0 &&
13321332 (size_t )frame_state < Py_ARRAY_LENGTH (state_strings ));
1333- return Py_NewRef ( state_strings [frame_state ]) ;
1333+ return state_strings [frame_state ];
13341334}
13351335
13361336static PyGetSetDef coro_getsetlist [] = {
@@ -1778,7 +1778,7 @@ ag_getstate(PyObject *self, void *Py_UNUSED(ignored))
17781778
17791779 assert (frame_state >= 0 &&
17801780 (size_t )frame_state < Py_ARRAY_LENGTH (state_strings ));
1781- return Py_NewRef ( state_strings [frame_state ]) ;
1781+ return state_strings [frame_state ];
17821782}
17831783
17841784static PyGetSetDef async_gen_getsetlist [] = {
You can’t perform that action at this time.
0 commit comments