summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_tkinter.c2
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);