summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-08-04 21:24:43 +0000
committerBrett Cannon <bcannon@gmail.com>2008-08-04 21:24:43 +0000
commitff6868cf10409441666d462af7df6a04faa45d1c (patch)
tree915f13e6661b826bf03811a29c292f00f2aaba12
parent132fc540695efd86781496304be299418fe918c1 (diff)
downloadcpython-git-ff6868cf10409441666d462af7df6a04faa45d1c.tar.gz
Remove a use of callable() from Tkinter to silence warnings under -3.
-rw-r--r--Lib/lib-tk/Tkinter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 3f69baba96..7b116d9bb3 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -1577,7 +1577,7 @@ class Wm:
"""Bind function FUNC to command NAME for this widget.
Return the function bound to NAME if None is given. NAME could be
e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW"."""
- if callable(func):
+ if hasattr(func, '__call__'):
command = self._register(func)
else:
command = func