Remove unneeded assignment in PyBytes_Concat() (GH-15274)
The `wb.len = -1` assignment is unneeded since its introduction in 161d695fb0
as `PyObject_GetBuffer` always fills it in.
This commit is contained in:
parent
9cbb97b29e
commit
afdeb189e9
|
@ -2935,7 +2935,6 @@ PyBytes_Concat(PyObject **pv, PyObject *w)
|
|||
Py_ssize_t oldsize;
|
||||
Py_buffer wb;
|
||||
|
||||
wb.len = -1;
|
||||
if (PyObject_GetBuffer(w, &wb, PyBUF_SIMPLE) != 0) {
|
||||
PyErr_Format(PyExc_TypeError, "can't concat %.100s to %.100s",
|
||||
Py_TYPE(w)->tp_name, Py_TYPE(*pv)->tp_name);
|
||||
|
|
Loading…
Reference in New Issue