summaryrefslogtreecommitdiff
path: root/Include/py_curses.h
diff options
context:
space:
mode:
authordoko <doko@ubuntu.com>2017-01-31 13:53:39 +0100
committerdoko <doko@ubuntu.com>2017-01-31 13:53:39 +0100
commit81d2d265a587d706cd5c2bae00933726ac9e0674 (patch)
tree6aae2d9a90029bc53b4eeb9a10c3c1ee13df7630 /Include/py_curses.h
parentf18049fe65b515378c7c051fc0b8e41c8cfd0f17 (diff)
parentb23072b8814146d3a76eb752fd7526eb1575e7cc (diff)
downloadcpython-81d2d265a587d706cd5c2bae00933726ac9e0674.tar.gz
merge 3.6
Diffstat (limited to 'Include/py_curses.h')
-rw-r--r--Include/py_curses.h9
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
}