diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py index 3784cdb35d1..53de2969df5 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