diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-08-01 01:45:49 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-08-01 01:45:49 (GMT) |
commit | 52597be2a15130ced487240159392a076d1c7cca (patch) | |
tree | 6f98860698ef5c1c9683a382b6fa113094607260 | |
parent | f5eb2ff10048dfba8023494c4c642797ecc24f3c (diff) | |
download | cpython-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.py | 2 |
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 |