Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bebfbe2

Browse files
committed
finish fixing the rlcompleter regression (thanks for noticing Antonine Pitrou)
1 parent f385485 commit bebfbe2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/rlcompleter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def complete(self, text, state):
8787
return None
8888

8989
def _callable_postfix(self, val, word):
90-
if callable(val):
90+
if hasattr(val, '__call__'):
9191
word = word + "("
9292
return word
9393

0 commit comments

Comments
 (0)