From 69f7132365c4f369068b8e09921cd29ea92f3754 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 13 Aug 2008 02:12:08 +0000 Subject: [PATCH] 137: Removed depreciated PublicAPI.max_cmd_len property --- ipalib/public.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/ipalib/public.py b/ipalib/public.py index e173bdd5b..798b258c2 100644 --- a/ipalib/public.py +++ b/ipalib/public.py @@ -308,16 +308,5 @@ class prop(attr, option): class PublicAPI(plugable.API): - __max_cmd_len = None - def __init__(self): super(PublicAPI, self).__init__(cmd, obj, mthd, prop) - - def __get_max_cmd_len(self): - if self.__max_cmd_len is None: - if not hasattr(self, 'cmd'): - return None - max_cmd_len = max(len(str(cmd)) for cmd in self.cmd) - object.__setattr__(self, '_PublicAPI__max_cmd_len', max_cmd_len) - return self.__max_cmd_len - max_cmd_len = property(__get_max_cmd_len)