Skip to content

Commit 4297f8b

Browse files
Review addressed
1 parent 35dfe24 commit 4297f8b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Objects/tupleobject.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,12 @@ _PyTuple_MaybeUntrack(PyObject *op)
145145
t = (PyTupleObject *) op;
146146
n = Py_SIZE(t);
147147
for (i = 0; i < n; i++) {
148-
PyObject *elt = PyTuple_GET_ITEM(t, i);
148+
PyObject *item = PyTuple_GET_ITEM(t, i);
149149
/* Tuple with NULL elements aren't
150150
fully constructed, don't untrack
151151
them yet. */
152-
if (!elt ||
153-
_PyObject_GC_MAY_BE_TRACKED(elt))
152+
if (!item ||
153+
_PyObject_GC_MAY_BE_TRACKED(item))
154154
return;
155155
}
156156
_PyObject_GC_UNTRACK(op);
@@ -159,13 +159,13 @@ _PyTuple_MaybeUntrack(PyObject *op)
159159
static bool
160160
tuple_need_tracking(PyTupleObject *self)
161161
{
162-
Py_ssize_t n = PyTuple_GET_SIZE(t);
162+
Py_ssize_t n = PyTuple_GET_SIZE(self);
163163
for (Py_ssize_t i = 0; i < n; i++) {
164-
PyObject *elt = PyTuple_GET_ITEM(t, i);
164+
PyObject *item = PyTuple_GET_ITEM(self, i);
165165
/* Tuple with NULL elements aren't
166166
fully constructed, we should track them. */
167-
if (!elt ||
168-
_PyObject_GC_MAY_BE_TRACKED(elt)) {
167+
if (!item ||
168+
_PyObject_GC_MAY_BE_TRACKED(item)) {
169169
return true;
170170
}
171171
}

0 commit comments

Comments
 (0)