[Python-checkins] python/dist/src/Modules _tkinter.c,1.124,1.125
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Tue, 04 Jun 2002 10:14:09 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv2033/Modules
Modified Files:
_tkinter.c
Log Message:
Fix SF bug #557436, TclError is a str should be an Exception
Make Tkinter.TclError derive from Exception, it was a string.
Index: _tkinter.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_tkinter.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -C2 -d -r1.124 -r1.125
*** _tkinter.c 31 Mar 2002 14:44:22 -0000 1.124
--- _tkinter.c 4 Jun 2002 17:14:07 -0000 1.125
***************
*** 2124,2128 ****
d = PyModule_GetDict(m);
! Tkinter_TclError = Py_BuildValue("s", "TclError");
PyDict_SetItemString(d, "TclError", Tkinter_TclError);
--- 2124,2128 ----
d = PyModule_GetDict(m);
! Tkinter_TclError = PyErr_NewException("_tkinter.TclError", NULL, NULL);
PyDict_SetItemString(d, "TclError", Tkinter_TclError);