Skip to content

Commit 89f66f8

Browse files
committed
ldapurl: Update docstring of LDAPUrlExtensions.__setitem__
1 parent 917f9c3 commit 89f66f8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Lib/ldapurl.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,12 @@ def __init__(self, default=None):
144144
self.update(default)
145145

146146
def __setitem__(self, name, value):
147-
"""
147+
"""Store an extension
148+
149+
name
150+
string
148151
value
149-
Either LDAPUrlExtension instance, (critical,exvalue)
150-
or string'ed exvalue
152+
LDAPUrlExtension instance, whose extype nust match `name`
151153
"""
152154
if not isinstance(value, LDAPUrlExtension):
153155
raise TypeError("value must be LDAPUrlExtension, not "

0 commit comments

Comments
 (0)