diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-07-05 21:20:33 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-07-05 21:20:33 (GMT) |
commit | bebfbe2d1138216a5023ce067f6d1fbc29a437c6 (patch) | |
tree | d8293235d2ec11aad661c45eb5c9fcb2b6c7b5a7 /Lib | |
parent | f385485ec8cf916ed640d6ddb0f27802c3f5a70b (diff) | |
download | cpython-bebfbe2d1138216a5023ce067f6d1fbc29a437c6.zip cpython-bebfbe2d1138216a5023ce067f6d1fbc29a437c6.tar.gz cpython-bebfbe2d1138216a5023ce067f6d1fbc29a437c6.tar.bz2 |
finish fixing the rlcompleter regression (thanks for noticing Antonine Pitrou)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/rlcompleter.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |