From bebfbe2d1138216a5023ce067f6d1fbc29a437c6 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 5 Jul 2008 21:20:33 +0000 Subject: finish fixing the rlcompleter regression (thanks for noticing Antonine Pitrou) --- Lib/rlcompleter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py index a3c331b..db63aeb 100644 --- a/Lib/rlcompleter.py +++ b/Lib/rlcompleter.py @@ -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 -- cgit v0.12