commit | 228b12edcce49649d6befa3c03dbcefd5a22ae76 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Mon Jan 23 09:47:21 2017 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Mon Jan 23 09:47:21 2017 +0200 |
tree | 1066be6909fb981fcf30e1a8e224d43567bd9b92 | |
parent | 60e6e962bac6a668d0df539ebf526a0a1c69eacd [diff] [blame] |
Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever possible. Patch is writen with Coccinelle.
diff --git a/Python/modsupport.c b/Python/modsupport.c index 01b5dc9..e9e025b 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c
@@ -514,8 +514,7 @@ if (n < 0) return NULL; if (n == 0) { - Py_INCREF(Py_None); - return Py_None; + Py_RETURN_NONE; } va_copy(lva, va); if (n == 1) {