commit | 52597be2a15130ced487240159392a076d1c7cca | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Fri Aug 01 01:45:49 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Fri Aug 01 01:45:49 2008 +0000 |
tree | 6f98860698ef5c1c9683a382b6fa113094607260 | |
parent | f5eb2ff10048dfba8023494c4c642797ecc24f3c [diff] |
Remove a use of callable() to silence the warning triggered under -3.
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 @@ return None def _callable_postfix(self, val, word): - if callable(val): + if hasattr(val, '__call__'): word = word + "(" return word