commit | bebfbe2d1138216a5023ce067f6d1fbc29a437c6 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Jul 05 21:20:33 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Jul 05 21:20:33 2008 +0000 |
tree | d8293235d2ec11aad661c45eb5c9fcb2b6c7b5a7 | |
parent | f385485ec8cf916ed640d6ddb0f27802c3f5a70b [diff] |
finish fixing the rlcompleter regression (thanks for noticing Antonine Pitrou)
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 @@ return None def _callable_postfix(self, val, word): - if callable(val): + if hasattr(val, '__call__'): word = word + "(" return word