8000 Update Modules/_testcapi/list.c · python/cpython@d31fa57 · GitHub
[go: up one dir, main page]

Skip to content

Commit d31fa57

Browse files
Update Modules/_testcapi/list.c
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 40e4022 commit d31fa57

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/_testcapi/list.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ list_append(PyObject *Py_UNUSED(module), PyObject *args)
114114
}
115115
NULLABLE(obj);
116116
NULLABLE(value);
117-
value = Py_XNewRef(value);
118-
RETURN_INT(PyList_Append(obj, value));
117+
RETURN_INT(PyList_Append(obj, Py_XNewRef(value)));
119118
}
120119

121120
static PyObject *

0 commit comments

Comments
 (0)
0