Skip to content

Commit 0625e19

Browse files
jdufresneencukou
authored andcommitted
Call str.lower() as a method
More idiomatic Python. #139
1 parent be5a344 commit 0625e19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/ldap/modlist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ def modifyModlist(
5151
modlist = []
5252
attrtype_lower_map = {}
5353
for a in old_entry.keys():
54-
attrtype_lower_map[str.lower(a)]=a
54+
attrtype_lower_map[a.lower()]=a
5555
for attrtype in new_entry.keys():
56-
attrtype_lower = str.lower(attrtype)
56+
attrtype_lower = attrtype.lower()
5757
if attrtype_lower in ignore_attr_types:
5858
# This attribute type is ignored
5959
continue

0 commit comments

Comments
 (0)