mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Cruft cleanup: Removed the unused last_is_sticky argument from the internal
_PyTuple_Resize().
This commit is contained in:
parent
6a922372ad
commit
4324aa3572
6 changed files with 15 additions and 10 deletions
|
|
@ -1220,7 +1220,7 @@ PySequence_Tuple(PyObject *v)
|
|||
n += 10;
|
||||
else
|
||||
n += 100;
|
||||
if (_PyTuple_Resize(&result, n, 0) != 0) {
|
||||
if (_PyTuple_Resize(&result, n) != 0) {
|
||||
Py_DECREF(item);
|
||||
goto Fail;
|
||||
}
|
||||
|
|
@ -1230,7 +1230,7 @@ PySequence_Tuple(PyObject *v)
|
|||
|
||||
/* Cut tuple back if guess was too large. */
|
||||
if (j < n &&
|
||||
_PyTuple_Resize(&result, j, 0) != 0)
|
||||
_PyTuple_Resize(&result, j) != 0)
|
||||
goto Fail;
|
||||
|
||||
Py_DECREF(it);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue