summaryrefslogtreecommitdiffstats
path: root/Lib/rlcompleter.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-07-05 21:20:33 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-07-05 21:20:33 (GMT)
commitbebfbe2d1138216a5023ce067f6d1fbc29a437c6 (patch)
treed8293235d2ec11aad661c45eb5c9fcb2b6c7b5a7 /Lib/rlcompleter.py
parentf385485ec8cf916ed640d6ddb0f27802c3f5a70b (diff)
downloadcpython-bebfbe2d1138216a5023ce067f6d1fbc29a437c6.zip
cpython-bebfbe2d1138216a5023ce067f6d1fbc29a437c6.tar.gz
cpython-bebfbe2d1138216a5023ce067f6d1fbc29a437c6.tar.bz2
finish fixing the rlcompleter regression (thanks for noticing Antonine Pitrou)
Diffstat (limited to 'Lib/rlcompleter.py')
-rw-r--r--Lib/rlcompleter.py2
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