summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-06-04 17:14:07 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-06-04 17:14:07 (GMT)
commitb5b5a260ea2e8b5ea21ec7d938ddc69ad716635e (patch)
tree4256df97fbd3b686f55a3e89f69255f56cb99e70 /Modules/_tkinter.c
parent293dd4b77b568b32d8131eebb3f6688125d117de (diff)
downloadcpython-b5b5a260ea2e8b5ea21ec7d938ddc69ad716635e.zip
cpython-b5b5a260ea2e8b5ea21ec7d938ddc69ad716635e.tar.gz
cpython-b5b5a260ea2e8b5ea21ec7d938ddc69ad716635e.tar.bz2
Fix SF bug #557436, TclError is a str should be an Exception
Make Tkinter.TclError derive from Exception, it was a string.
Diffstat (limited to 'Modules/_tkinter.c')
-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);