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:
Serhiy Storchaka 2017-01-23 10:23:58 +02:00
parent 228b12edcc
commit d1302c0154
5 changed files with 10 additions and 19 deletions

View file

@ -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