Skip to content

Commit

Permalink
Call str.lower() as a method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Dufresne authored and Petr Viktorin committed Dec 18, 2017
1 parent be5a344 commit 0625e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/ldap/modlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def modifyModlist(
modlist = []
attrtype_lower_map = {}
for a in old_entry.keys():
attrtype_lower_map[str.lower(a)]=a
attrtype_lower_map[a.lower()]=a
for attrtype in new_entry.keys():
attrtype_lower = str.lower(attrtype)
attrtype_lower = attrtype.lower()
if attrtype_lower in ignore_attr_types:
# This attribute type is ignored
continue
Expand Down

0 comments on commit 0625e19

Please sign in to comment.