Skip to content

Commit

Permalink
ldapurl: Update docstring of LDAPUrlExtensions.__setitem__
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Viktorin committed Jun 5, 2020
1 parent 917f9c3 commit 89f66f8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Lib/ldapurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,12 @@ def __init__(self, default=None):
self.update(default)

def __setitem__(self, name, value):
"""
"""Store an extension
name
string
value
Either LDAPUrlExtension instance, (critical,exvalue)
or string'ed exvalue
LDAPUrlExtension instance, whose extype nust match `name`
"""
if not isinstance(value, LDAPUrlExtension):
raise TypeError("value must be LDAPUrlExtension, not "
Expand Down

0 comments on commit 89f66f8

Please sign in to comment.