From: Brett Cannon Date: Mon, 4 Aug 2008 21:24:43 +0000 (+0000) Subject: Remove a use of callable() from Tkinter to silence warnings under -3. X-Git-Tag: v2.6b3~135 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff6868cf10409441666d462af7df6a04faa45d1c;p=thirdparty%2FPython%2Fcpython.git Remove a use of callable() from Tkinter to silence warnings under -3. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 3f69baba9634..7b116d9bb38d 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