summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorJason Tishler <jason@tishler.net>2003-01-06 12:41:26 (GMT)
committerJason Tishler <jason@tishler.net>2003-01-06 12:41:26 (GMT)
commitfb8595df4f9583ab9e83826cd782e0c18ba9cffa (patch)
treefb178c5308b141f5285fd5b0bb560da02ee8c64c /Modules/_tkinter.c
parentf2128b004c5cac7ae8766329b061867de6fb6093 (diff)
downloadcpython-fb8595df4f9583ab9e83826cd782e0c18ba9cffa.zip
cpython-fb8595df4f9583ab9e83826cd782e0c18ba9cffa.tar.gz
cpython-fb8595df4f9583ab9e83826cd782e0c18ba9cffa.tar.bz2
Patch #661760: Cygwin auto-import module patch
The attached patch enables shared extension modules to build cleanly under Cygwin without moving the static initialization of certain function pointers (i.e., ones exported from the Python DLL core) to a module initialization function. Additionally, this patch fixes the modules that have been changed in the past to accommodate Cygwin.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 21d62b1..1bb2d82 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -834,7 +834,7 @@ statichere PyTypeObject PyTclObject_Type = {
0, /*tp_hash*/
0, /*tp_call*/
(reprfunc)PyTclObject_str, /*tp_str*/
- 0, /*tp_getattro*/
+ PyObject_GenericGetAttr,/*tp_getattro*/
0, /*tp_setattro*/
0, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT, /*tp_flags*/
@@ -2931,7 +2931,6 @@ init_tkinter(void)
PyDict_SetItemString(d, "TkttType", (PyObject *)&Tktt_Type);
PyTclObject_Type.ob_type = &PyType_Type;
- PyTclObject_Type.tp_getattro = &PyObject_GenericGetAttr;
PyDict_SetItemString(d, "Tcl_Obj", (PyObject *)&PyTclObject_Type);
#ifdef TK_AQUA