summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-09-07 14:32:49 (GMT)
committerGuido van Rossum <guido@python.org>1994-09-07 14:32:49 (GMT)
commite4485b064d46ad8739df2919192ae0b488de88ba (patch)
treef42fbb5793179cf8aadbea190be09424d4bf0d0d /Modules/_tkinter.c
parenta1426136786711bae9a5a576a0e4fbf27979cac9 (diff)
downloadcpython-e4485b064d46ad8739df2919192ae0b488de88ba.zip
cpython-e4485b064d46ad8739df2919192ae0b488de88ba.tar.gz
cpython-e4485b064d46ad8739df2919192ae0b488de88ba.tar.bz2
Setup.in: added tkinter; rearranged the definition of PYTHONPATH so
that the module-specific components are in the section for that module. cursesmodule.c: patched it so it actually works. tkintermodule.c: call Py_AtExit instead of atexit(). signalmodule.c: converted to new naming style; added BGN/END SAVE around pause() call. socketmodule.c: added setblocking() after Tommy Burnette.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 1f702d3..63a3bf9 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -1092,8 +1092,9 @@ PyInit_tkinter ()
if (!inited)
{
inited = 1;
- if (atexit (Tkinter_Cleanup))
- PyErr_SetFromErrno (Tkinter_TclError);
+ if (Py_AtExit (Tkinter_Cleanup) != 0)
+ fprintf(stderr,
+ "Tkinter: warning: cleanup procedure not registered\n");
}
if (PyErr_Occurred ())