finish fixing the rlcompleter regression (thanks for noticing Antonine Pitrou)

This commit is contained in:
Benjamin Peterson 2008-07-05 21:20:33 +00:00
parent f385485ec8
commit bebfbe2d11

View file

@ -87,7 +87,7 @@ class Completer:
return None
def _callable_postfix(self, val, word):
if callable(val):
if hasattr(val, '__call__'):
word = word + "("
return word