From: Benjamin Peterson Date: Sat, 5 Jul 2008 21:20:33 +0000 (+0000) Subject: finish fixing the rlcompleter regression (thanks for noticing Antonine Pitrou) X-Git-Tag: v3.0b2~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bebfbe2d1138216a5023ce067f6d1fbc29a437c6;p=python finish fixing the rlcompleter regression (thanks for noticing Antonine Pitrou) --- diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py index a3c331bf82..db63aeb4d8 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