Remove a use of callable() to silence the warning triggered under -3.

This commit is contained in:
Brett Cannon 2008-08-01 01:45:49 +00:00
parent f5eb2ff100
commit 52597be2a1
1 changed files with 1 additions and 1 deletions

View 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