Skip to content

Commit d2217a8

Browse files
committed
Issue #15721: apply PEP 384 Refactoring to tkinter module.
1 parent b9e2d3f commit d2217a8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Modules/_tkinter.c

+1-6
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ static PyType_Slot PyTclObject_Type_slots[] = {
794794
{Py_tp_dealloc, (destructor)PyTclObject_dealloc},
795795
{Py_tp_repr, (reprfunc)PyTclObject_repr},
796796
{Py_tp_str, (reprfunc)PyTclObject_str},
797-
{Py_tp_getattro, NULL},
797+
{Py_tp_getattro, PyObject_GenericGetAttr},
798798
{Py_tp_richcompare, PyTclObject_richcompare},
799799
{Py_tp_getset, PyTclObject_getsetlist},
800800
{0, 0}
@@ -2831,11 +2831,6 @@ PyInit__tkinter(void)
28312831
{
28322832
PyObject *m, *uexe, *cexe, *o;
28332833

2834-
/* Due to cross platform compiler issues the slots must be filled
2835-
* here. It's required for portability to Windows without requiring
2836-
* C++. See xxxlimited.c*/
2837-
PyTclObject_Type_slots[3].pfunc = PyObject_GenericGetAttr;
2838-
28392834
#ifdef WITH_THREAD
28402835
tcl_lock = PyThread_allocate_lock();
28412836
if (tcl_lock == NULL)

0 commit comments

Comments
 (0)