We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 953e890 commit dc71970Copy full SHA for dc71970
csh_ldap/member.py
@@ -59,7 +59,7 @@ def get(self, key):
59
Arguments:
60
key -- the attribute to get the value of
61
"""
62
- return self._get_attr(key, as_list=True)
+ return self.__getattr__(key, as_list=True) # pylint: disable=unnecessary-dunder-call
63
64
@reconnect_on_fail
65
def groups(self):
@@ -91,7 +91,7 @@ def get_dn(self):
91
return self.__dn__
92
93
94
- def _get_attr(self, key, as_list=False):
+ def __getattr__(self, key, as_list=False):
95
res = self.__con__.search_s(
96
self.__dn__,
97
ldap.SCOPE_BASE,
0 commit comments