Skip to content

Commit

Permalink
Issue #15721: apply PEP 384 Refactoring to tkinter module.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Oct 30, 2012
1 parent b9e2d3f commit d2217a8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Modules/_tkinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d2217a8

Please sign in to comment.