Skip to content

Commit 29461a1

Browse files
authored
Merge pull request #39 from costowell/master
fix: _get_attr -> __getattr__ and version bump
2 parents ae0f69c + 101b654 commit 29461a1

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

AUTHORS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
Adam Brewer <[email protected]>
2+
Cole Stowell <[email protected]>
23
Devin Matte <[email protected]>
34
Galen Guyer <[email protected]>
4-
Cole Stowell <[email protected]>
55
Jordan Rodgers <[email protected]>
66
Liam Middlebrook <[email protected]>
77
Marc Billow <[email protected]>
88
Max Meinhold <[email protected]>
99
Michael Francis <[email protected]>
10+
Tyler Allen <[email protected]>
1011
William Stevens <[email protected]>

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGES
22
=======
33

4+
2.5.1
5+
-----
6+
7+
* fix: _get_attr -> __getattr__
8+
49
2.5.0
510
-----
611

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,

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description = CSH LDAP ORM
77
long_description = file: README.md
88
long_description_content_type = text/markdown
99
license = MIT
10-
version = 2.5.0
10+
version = 2.5.1
1111
classifier =
1212
Natural Language :: English
1313
Operating System :: POSIX :: Linux

0 commit comments

Comments
 (0)