mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-93172: Remove unnecessary "if"s in binascii_a2b_qp_impl() from Modules/binascii.c (GH-93181)
This commit is contained in:
parent
a4974003ec
commit
32e3b790bc
1 changed files with 2 additions and 8 deletions
|
@ -1024,10 +1024,7 @@ binascii_a2b_qp_impl(PyObject *module, Py_buffer *data, int header)
|
||||||
out++;
|
out++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((rv = PyBytes_FromStringAndSize((char *)odata, out)) == NULL) {
|
rv = PyBytes_FromStringAndSize((char *)odata, out);
|
||||||
PyMem_Free(odata);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
PyMem_Free(odata);
|
PyMem_Free(odata);
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
@ -1232,10 +1229,7 @@ binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((rv = PyBytes_FromStringAndSize((char *)odata, out)) == NULL) {
|
rv = PyBytes_FromStringAndSize((char *)odata, out);
|
||||||
PyMem_Free(odata);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
PyMem_Free(odata);
|
PyMem_Free(odata);
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue