mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
137: Removed depreciated PublicAPI.max_cmd_len property
This commit is contained in:
parent
05cefc2af6
commit
69f7132365
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user