There was an error while loading. Please reload this page.
1 parent f385485 commit bebfbe2Copy full SHA for bebfbe2
1 file changed
Lib/rlcompleter.py
@@ -87,7 +87,7 @@ def complete(self, text, state):
87
return None
88
89
def _callable_postfix(self, val, word):
90
- if callable(val):
+ if hasattr(val, '__call__'):
91
word = word + "("
92
return word
93
0 commit comments