@@ -2707,22 +2707,22 @@ task_step_impl(TaskObj *task, PyObject *exc)
2707
2707
/* The error is StopIteration and that means that
2708
2708
the underlying coroutine has resolved */
2709
2709
2710
- PyObject * res ;
2710
+ PyObject * tmp ;
2711
2711
if (task -> task_must_cancel ) {
2712
2712
// Task is cancelled right before coro stops.
2713
2713
task -> task_must_cancel = 0 ;
2714
- res = future_cancel ((FutureObj * )task , task -> task_cancel_msg );
2714
+ tmp = future_cancel ((FutureObj * )task , task -> task_cancel_msg );
2715
2715
}
2716
2716
else {
2717
- res = future_set_result ((FutureObj * )task , result );
2717
+ tmp = future_set_result ((FutureObj * )task , result );
2718
2718
}
2719
2719
2720
2720
Py_DECREF (result );
2721
2721
2722
- if (res == NULL ) {
2722
+ if (tmp == NULL ) {
2723
2723
return NULL ;
2724
2724
}
2725
- Py_DECREF (res );
2725
+ Py_DECREF (tmp );
2726
2726
Py_RETURN_NONE ;
2727
2727
}
2728
2728
@@ -2786,7 +2786,7 @@ task_step_impl(TaskObj *task, PyObject *exc)
2786
2786
/* Check if `result` is FutureObj or TaskObj (and not a subclass) */
2787
2787
if (Future_CheckExact (result ) || Task_CheckExact (result )) {
2788
2788
PyObject * wrapper ;
2789
- PyObject * res ;
2789
+ PyObject * tmp ;
2790
2790
FutureObj * fut = (FutureObj * )result ;
2791
2791
2792
2792
/* Check if `result` future is attached to a different loop */
@@ -2805,13 +2805,13 @@ task_step_impl(TaskObj *task, PyObject *exc)
2805
2805
if (wrapper == NULL ) {
2806
2806
goto fail ;
2807
2807
}
2808
- res = future_add_done_callback (
2808
+ tmp = future_add_done_callback (
2809
2809
(FutureObj * )result , wrapper , task -> task_context );
2810
2810
Py_DECREF (wrapper );
2811
- if (res == NULL ) {
2811
+ if (tmp == NULL ) {
2812
2812
goto fail ;
2813
2813
}
2814
- Py_DECREF (res );
2814
+ Py_DECREF (tmp );
2815
2815
2816
2816
/* task._fut_waiter = result */
2817
2817
task -> task_fut_waiter = result ; /* no incref is necessary */
@@ -2853,7 +2853,7 @@ task_step_impl(TaskObj *task, PyObject *exc)
2853
2853
if (o != NULL && o != Py_None ) {
2854
2854
/* `result` is a Future-compatible object */
2855
2855
PyObject * wrapper ;
2856
- PyObject * res ;
2856
+ PyObject * tmp ;
2857
2857
2858
2858
int blocking = PyObject_IsTrue (o );
2859
2859
Py_DECREF (o );
@@ -2897,13 +2897,13 @@ task_step_impl(TaskObj *task, PyObject *exc)
2897
2897
PyObject * stack [2 ];
2898
2898
stack [0 ] = wrapper ;
2899
2899
stack [1 ] = (PyObject * )task -> task_context ;
2900
- res = PyObject_Vectorcall (add_cb , stack , 1 , context_kwname );
2900
+ tmp = PyObject_Vectorcall (add_cb , stack , 1 , context_kwname );
2901
2901
Py_DECREF (add_cb );
2902
2902
Py_DECREF (wrapper );
2903
- if (res == NULL ) {
2903
+ if (tmp == NULL ) {
2904
2904
goto fail ;
2905
2905
}
2906
- Py_DECREF (res );
2906
+ Py_DECREF (tmp );
2907
2907
2908
2908
/* task._fut_waiter = result */
2909
2909
task -> task_fut_waiter = result ; /* no incref is necessary */
0 commit comments