summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-08-01 01:45:49 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-08-01 01:45:49 (GMT)
commit52597be2a15130ced487240159392a076d1c7cca (patch)
tree6f98860698ef5c1c9683a382b6fa113094607260
parentf5eb2ff10048dfba8023494c4c642797ecc24f3c (diff)
downloadcpython-52597be2a15130ced487240159392a076d1c7cca.zip
cpython-52597be2a15130ced487240159392a076d1c7cca.tar.gz
cpython-52597be2a15130ced487240159392a076d1c7cca.tar.bz2
Remove a use of callable() to silence the warning triggered under -3.
-rw-r--r--Lib/rlcompleter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py
index 3784cdb..53de296 100644
--- a/Lib/rlcompleter.py
+++ b/Lib/rlcompleter.py
@@ -93,7 +93,7 @@ class Completer:
return None
def _callable_postfix(self, val, word):
- if callable(val):
+ if hasattr(val, '__call__'):
word = word + "("
return word