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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy