Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
commit 9d9b15bc8b4848797ae9f305a365a0b680752466 Author: Peter Hatina phatina@redhat.com Date: Thu Jul 17 14:55:35 2014 +0200
drop unnecessary LMICompleter::_callable_postfix()
cli/lmi/shell/LMICompleter.py | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/cli/lmi/shell/LMICompleter.py b/cli/lmi/shell/LMICompleter.py index b5a117b..8859c5d 100644 --- a/cli/lmi/shell/LMICompleter.py +++ b/cli/lmi/shell/LMICompleter.py @@ -40,16 +40,6 @@ class LMICompleter(rlcompleter.Completer): def __init__(self, namespace=None): rlcompleter.Completer.__init__(self, namespace)
- def _callable_postfix(self, val, word): - """ - :param val: object, which is checked, if it is callable - :param string word: input string - :returns: string with opening parentheses, if the value is callable - """ - if hasattr(val, word) and callable(getattr(val, word)): - word = word + "(" - return word - def complete(self, text, state): """ :param string text: string to be completed.