summaryrefslogtreecommitdiffstats
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-12-26 15:57:01 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-12-26 15:57:01 (GMT)
commitcaefb37ee1790bdcfe735f782759563cd59e174a (patch)
tree1ad655fd2608315eb5db32e432f73f0f4ff89807 /Modules/_cursesmodule.c
parent1dea760ca1f08b4290b06155e3ded977a2c0ad0f (diff)
downloadcpython-caefb37ee1790bdcfe735f782759563cd59e174a.zip
cpython-caefb37ee1790bdcfe735f782759563cd59e174a.tar.gz
cpython-caefb37ee1790bdcfe735f782759563cd59e174a.tar.bz2
Add the curses constants ERR and OK to the module at TG's suggestion
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 4c4b4aa..6337a4c 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -2464,6 +2464,9 @@ init_curses(void)
PyDict_SetItemString(d, "__version__", v);
Py_DECREF(v);
+ SetDictInt("ERR", ERR);
+ SetDictInt("OK", OK);
+
/* Here are some attributes you can add to chars to print */
SetDictInt("A_ATTRIBUTES", A_ATTRIBUTES);