]> granicus.if.org Git - python/commitdiff
Remove a use of callable() to silence the warning triggered under -3.
authorBrett Cannon <bcannon@gmail.com>
Fri, 1 Aug 2008 01:45:49 +0000 (01:45 +0000)
committerBrett Cannon <bcannon@gmail.com>
Fri, 1 Aug 2008 01:45:49 +0000 (01:45 +0000)
Lib/rlcompleter.py

index 3784cdb35d1fd32aed62c55e258ae440d6fabf82..53de2969df57ca67a0e0d4933a647ffa62ccb466 100644 (file)
@@ -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