summaryrefslogtreecommitdiffstats
path: root/Modules/termios.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/termios.c')
-rw-r--r--Modules/termios.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Modules/termios.c b/Modules/termios.c
index 12418b5..5e46630 100644
--- a/Modules/termios.c
+++ b/Modules/termios.c
@@ -241,9 +241,6 @@ PyInit_termios()
m = Py_InitModule("termios", termios_methods);
d = PyModule_GetDict(m);
- TermiosError = Py_BuildValue("s", "termios.error");
+ TermiosError = PyErr_NewException("termios.error", NULL, NULL);
PyDict_SetItemString(d, "error", TermiosError);
-
- if (PyErr_Occurred())
- Py_FatalError("can't initialize module termios");
}