Skip to content

Commit 5274122

Browse files
Rename obj -> res in aux functions
1 parent 474f650 commit 5274122

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Modules/_testinternalcapi.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,9 +2501,9 @@ static PyObject *
25012501
stackref_from_object_new(PyObject *self, PyObject *op)
25022502
{
25032503
_PyStackRef ref = PyStackRef_FromPyObjectNew(op);
2504-
PyObject *obj = _PyStackRef_AsTuple(ref, op);
2504+
PyObject *res = _PyStackRef_AsTuple(ref, op);
25052505
PyStackRef_CLOSE(ref);
2506-
return obj;
2506+
return res;
25072507
}
25082508

25092509
static PyObject *
@@ -2512,11 +2512,11 @@ stackref_from_object_steal_with_incref(PyObject *self, PyObject *op)
25122512
// The next two lines are equivalent to PyStackRef_FromPyObjectNew.
25132513
Py_INCREF(op);
25142514
_PyStackRef ref = PyStackRef_FromPyObjectSteal(op);
2515-
PyObject *obj = _PyStackRef_AsTuple(ref, op);
2515+
PyObject *res = _PyStackRef_AsTuple(ref, op);
25162516
// The next two lines are equivalent to PyStackRef_CLOSE.
25172517
PyObject *op2 = PyStackRef_AsPyObjectSteal(ref);
25182518
Py_DECREF(op2);
2519-
return obj;
2519+
return res;
25202520
}
25212521

25222522
static PyObject *
@@ -2525,9 +2525,9 @@ stackref_make_heap_safe(PyObject *self, PyObject *op)
25252525
_PyStackRef ref = PyStackRef_FromPyObjectNew(op);
25262526
// For no-GIL release build ref2 is equal to ref.
25272527
_PyStackRef ref2 = PyStackRef_MakeHeapSafe(ref);
2528-
PyObject *obj = _PyStackRef_AsTuple(ref2, op);
2528+
PyObject *res = _PyStackRef_AsTuple(ref2, op);
25292529
PyStackRef_CLOSE(ref2);
2530-
return obj;
2530+
return res;
25312531
}
25322532

25332533
static PyObject *
@@ -2538,9 +2538,9 @@ stackref_make_heap_safe_with_borrow(PyObject *self, PyObject *op)
25382538
_PyStackRef ref3 = PyStackRef_MakeHeapSafe(ref2);
25392539
// We can close ref, since ref3 is heap safe.
25402540
PyStackRef_CLOSE(ref);
2541-
PyObject *obj = _PyStackRef_AsTuple(ref3, op);
2541+
PyObject *res = _PyStackRef_AsTuple(ref3, op);
25422542
PyStackRef_CLOSE(ref3);
2543-
return obj;
2543+
return res;
25442544
}
25452545

25462546
static PyObject *
@@ -2550,18 +2550,18 @@ stackref_strong_reference(PyObject *self, PyObject *op)
25502550
_PyStackRef ref = PyStackRef_FromPyObjectBorrow(op);
25512551
PyObject *op2 = PyStackRef_AsPyObjectSteal(ref);
25522552
_PyStackRef ref2 = PyStackRef_FromPyObjectSteal(op2);
2553-
PyObject *obj = _PyStackRef_AsTuple(ref2, op);
2553+
PyObject *res = _PyStackRef_AsTuple(ref2, op);
25542554
PyStackRef_CLOSE(ref2);
2555-
return obj;
2555+
return res;
25562556
}
25572557

25582558
static PyObject *
25592559
stackref_from_object_borrow(PyObject *self, PyObject *op)
25602560
{
25612561
_PyStackRef ref = PyStackRef_FromPyObjectBorrow(op);
2562-
PyObject *obj = _PyStackRef_AsTuple(ref, op);
2562+
PyObject *res = _PyStackRef_AsTuple(ref, op);
25632563
PyStackRef_CLOSE(ref);
2564-
return obj;
2564+
return res;
25652565
}
25662566

25672567
static PyObject *
@@ -2572,9 +2572,9 @@ stackref_dup_borrowed_with_close(PyObject *self, PyObject *op)
25722572
_PyStackRef ref2 = PyStackRef_DUP(ref);
25732573
// For release build closing borrowed ref is no-op.
25742574
PyStackRef_XCLOSE(ref);
2575-
PyObject *obj = _PyStackRef_AsTuple(ref2, op);
2575+
PyObject *res = _PyStackRef_AsTuple(ref2, op);
25762576
PyStackRef_XCLOSE(ref2);
2577-
return obj;
2577+
return res;
25782578
}
25792579

25802580

0 commit comments

Comments
 (0)