mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
bpo-32150: Expand tabs to spaces in C files. (#4583)
This commit is contained in:
parent
08d2b86a10
commit
598ceae876
27 changed files with 213 additions and 213 deletions
|
|
@ -16,14 +16,14 @@ static PyObject *_Py_strhex_impl(const char* argbuf, const Py_ssize_t arglen,
|
|||
if (return_bytes) {
|
||||
/* If _PyBytes_FromSize() were public we could avoid malloc+copy. */
|
||||
retbuf = (Py_UCS1*) PyMem_Malloc(arglen*2);
|
||||
if (!retbuf)
|
||||
return PyErr_NoMemory();
|
||||
if (!retbuf)
|
||||
return PyErr_NoMemory();
|
||||
retval = NULL; /* silence a compiler warning, assigned later. */
|
||||
} else {
|
||||
retval = PyUnicode_New(arglen*2, 127);
|
||||
if (!retval)
|
||||
return NULL;
|
||||
retbuf = PyUnicode_1BYTE_DATA(retval);
|
||||
retval = PyUnicode_New(arglen*2, 127);
|
||||
if (!retval)
|
||||
return NULL;
|
||||
retbuf = PyUnicode_1BYTE_DATA(retval);
|
||||
}
|
||||
|
||||
/* make hex version of string, taken from shamodule.c */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue