]> granicus.if.org Git - python/commitdiff
Add the curses constants ERR and OK to the module at TG's suggestion
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 26 Dec 2000 15:57:01 +0000 (15:57 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 26 Dec 2000 15:57:01 +0000 (15:57 +0000)
Modules/_cursesmodule.c

index 4c4b4aafe18997ef9736da2645605273b3636462..6337a4c8eeba15ff1bea6b7ba780b9a8e6fd1da1 100644 (file)
@@ -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);