summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/rlcompleter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py
index 3784cdb35d..53de2969df 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