mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
Remove a use of callable() from Tkinter to silence warnings under -3.
This commit is contained in:
parent
132fc54069
commit
ff6868cf10
1 changed files with 1 additions and 1 deletions
|
@ -1577,7 +1577,7 @@ class Wm:
|
||||||
"""Bind function FUNC to command NAME for this widget.
|
"""Bind function FUNC to command NAME for this widget.
|
||||||
Return the function bound to NAME if None is given. NAME could be
|
Return the function bound to NAME if None is given. NAME could be
|
||||||
e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW"."""
|
e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW"."""
|
||||||
if callable(func):
|
if hasattr(func, '__call__'):
|
||||||
command = self._register(func)
|
command = self._register(func)
|
||||||
else:
|
else:
|
||||||
command = func
|
command = func
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue