diff options
author | doko <doko@ubuntu.com> | 2017-01-31 13:53:39 +0100 |
---|---|---|
committer | doko <doko@ubuntu.com> | 2017-01-31 13:53:39 +0100 |
commit | 81d2d265a587d706cd5c2bae00933726ac9e0674 (patch) | |
tree | 6aae2d9a90029bc53b4eeb9a10c3c1ee13df7630 /Include/py_curses.h | |
parent | f18049fe65b515378c7c051fc0b8e41c8cfd0f17 (diff) | |
parent | b23072b8814146d3a76eb752fd7526eb1575e7cc (diff) | |
download | cpython-81d2d265a587d706cd5c2bae00933726ac9e0674.tar.gz |
merge 3.6
Diffstat (limited to 'Include/py_curses.h')
-rw-r--r-- | Include/py_curses.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Include/py_curses.h b/Include/py_curses.h index 3c21697073..336c95d360 100644 --- a/Include/py_curses.h +++ b/Include/py_curses.h @@ -154,19 +154,16 @@ static PyObject *PyCurses_ ## X (PyObject *self) \ { \ PyCursesInitialised \ if (X () == FALSE) { \ - Py_INCREF(Py_False); \ - return Py_False; \ + Py_RETURN_FALSE; \ } \ - Py_INCREF(Py_True); \ - return Py_True; } + Py_RETURN_TRUE; } #define NoArgNoReturnVoidFunction(X) \ static PyObject *PyCurses_ ## X (PyObject *self) \ { \ PyCursesInitialised \ X(); \ - Py_INCREF(Py_None); \ - return Py_None; } + Py_RETURN_NONE; } #ifdef __cplusplus } |