summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/listobject.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index a877bad..bbd53e7 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -335,11 +335,7 @@ list_item_impl(PyListObject *self, Py_ssize_t idx)
if (!valid_index(idx, size)) {
goto exit;
}
-#ifdef Py_GIL_DISABLED
item = _Py_NewRefWithLock(self->ob_item[idx]);
-#else
- item = Py_NewRef(self->ob_item[idx]);
-#endif
exit:
Py_END_CRITICAL_SECTION();
return item;