From: Brett Cannon Date: Fri, 1 Aug 2008 01:45:49 +0000 (+0000) Subject: Remove a use of callable() to silence the warning triggered under -3. X-Git-Tag: v2.6b3~184 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52597be2a15130ced487240159392a076d1c7cca;p=thirdparty%2FPython%2Fcpython.git Remove a use of callable() to silence the warning triggered under -3. --- diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py index 3784cdb35d1f..53de2969df57 100644 --- a/Lib/rlcompleter.py +++ b/Lib/rlcompleter.py @@ -93,7 +93,7 @@ class Completer: return None def _callable_postfix(self, val, word): - if callable(val): + if hasattr(val, '__call__'): word = word + "(" return word