Skip to content

Commit dc71970

Browse files
committed
fix: _get_attr -> __getattr__
1 parent 953e890 commit dc71970

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csh_ldap/member.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get(self, key):
5959
Arguments:
6060
key -- the attribute to get the value of
6161
"""
62-
return self._get_attr(key, as_list=True)
62+
return self.__getattr__(key, as_list=True) # pylint: disable=unnecessary-dunder-call
6363

6464
@reconnect_on_fail
6565
def groups(self):
@@ -91,7 +91,7 @@ def get_dn(self):
9191
return self.__dn__
9292

9393
@reconnect_on_fail
94-
def _get_attr(self, key, as_list=False):
94+
def __getattr__(self, key, as_list=False):
9595
res = self.__con__.search_s(
9696
self.__dn__,
9797
ldap.SCOPE_BASE,

0 commit comments

Comments
 (0)