diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-10-30 20:49:16 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-10-30 20:49:16 (GMT) |
commit | d2217a83d4e2ee9aec1a0bf590820aa77b7ed5e7 (patch) | |
tree | bda751761ae82df876e50609afa0e48b14f08914 /Modules | |
parent | b9e2d3f884fdb7a7c35e15c2093a84b0fa9ea53e (diff) | |
download | cpython-d2217a83d4e2ee9aec1a0bf590820aa77b7ed5e7.zip cpython-d2217a83d4e2ee9aec1a0bf590820aa77b7ed5e7.tar.gz cpython-d2217a83d4e2ee9aec1a0bf590820aa77b7ed5e7.tar.bz2 |
Issue #15721: apply PEP 384 Refactoring to tkinter module.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_tkinter.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 8472439..bb689fc 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -794,7 +794,7 @@ static PyType_Slot PyTclObject_Type_slots[] = { {Py_tp_dealloc, (destructor)PyTclObject_dealloc}, {Py_tp_repr, (reprfunc)PyTclObject_repr}, {Py_tp_str, (reprfunc)PyTclObject_str}, - {Py_tp_getattro, NULL}, + {Py_tp_getattro, PyObject_GenericGetAttr}, {Py_tp_richcompare, PyTclObject_richcompare}, {Py_tp_getset, PyTclObject_getsetlist}, {0, 0} @@ -2831,11 +2831,6 @@ PyInit__tkinter(void) { PyObject *m, *uexe, *cexe, *o; - /* Due to cross platform compiler issues the slots must be filled - * here. It's required for portability to Windows without requiring - * C++. See xxxlimited.c*/ - PyTclObject_Type_slots[3].pfunc = PyObject_GenericGetAttr; - #ifdef WITH_THREAD tcl_lock = PyThread_allocate_lock(); if (tcl_lock == NULL) |