diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_tkinter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index d155e77..788177f 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -2123,7 +2123,7 @@ init_tkinter(void) m = Py_InitModule("_tkinter", moduleMethods); d = PyModule_GetDict(m); - Tkinter_TclError = Py_BuildValue("s", "TclError"); + Tkinter_TclError = PyErr_NewException("_tkinter.TclError", NULL, NULL); PyDict_SetItemString(d, "TclError", Tkinter_TclError); ins_long(d, "READABLE", TCL_READABLE); |