mirror of https://github.com/python/cpython.git
Add the curses constants ERR and OK to the module at TG's suggestion
This commit is contained in:
parent
1dea760ca1
commit
caefb37ee1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue