Remove a use of callable() to silence the warning triggered under -3.
This commit is contained in:
parent
f5eb2ff100
commit
52597be2a1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue