8000 Address Erlend's review · python/cpython@3db44f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3db44f3

Browse files
committed
Address Erlend's review
1 parent a529a48 commit 3db44f3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Modules/_testcapi/long.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,18 +246,15 @@ pylongwriter_create(PyObject *module, PyObject *args)
246246
{
247247
int negative;
248248
PyObject *list;
249-
if (!PyArg_ParseTuple(args, "iO!",
250-
&negative,
251-
&PyList_Type, &list))
249+
if (!PyArg_ParseTuple(args, "iO!", &negative, &PyList_Type, &list))
252250
{
253251
return NULL;
254252
}
255253
Py_ssize_t ndigits = PyList_GET_SIZE(list);
256254

257255
digit *digits = PyMem_Malloc((size_t)ndigits * sizeof(digit));
258256
if (digits == NULL) {
259-
PyErr_NoMemory();
260-
return NULL;
257+
return PyErr_NoMemory();
261258
}
262259

263260
for (Py_ssize_t i=0; i < ndigits; i++) {

0 commit comments

Comments
 (0)
0