mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever
possible but Coccinelle couldn't find opportunity.
This commit is contained in:
parent
228b12edcc
commit
d1302c0154
5 changed files with 10 additions and 19 deletions
|
@ -117,8 +117,7 @@ test_sizeof_c_types(PyObject *self)
|
|||
CHECK_SIZEOF(intptr_t, sizeof(void *));
|
||||
CHECK_SIGNNESS(intptr_t, 1);
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_RETURN_NONE;
|
||||
|
||||
#undef IS_SIGNED
|
||||
#undef CHECK_SIGNESS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue