summaryrefslogtreecommitdiffstats
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-06 19:38:49 (GMT)
committerFred Drake <fdrake@acm.org>2000-07-06 19:38:49 (GMT)
commit589c35bcc7ee2448507cedf303e3b72ede34b6ce (patch)
tree88a6da6e3476bc44a4da27f7dedcb5b65d29861a /Modules/_cursesmodule.c
parent28067821e28ddc03687818334b83a0d312265575 (diff)
downloadcpython-589c35bcc7ee2448507cedf303e3b72ede34b6ce.zip
cpython-589c35bcc7ee2448507cedf303e3b72ede34b6ce.tar.gz
cpython-589c35bcc7ee2448507cedf303e3b72ede34b6ce.tar.bz2
Python 2.0 is not supposed to use string exceptions in the standard library
& extensions, so create exceptions in extension modules using the PyErr_NewException() API.
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index f98f12e..330f6a2 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -2329,7 +2329,7 @@ init_curses()
ModDict = d; /* For PyCurses_InitScr */
/* For exception curses.error */
- PyCursesError = PyString_FromString("_curses.error");
+ PyCursesError = PyErr_NewException("_curses.error", NULL, NULL);
PyDict_SetItemString(d, "error", PyCursesError);
/* Make the version available */