From 89f66f8dfa0be86a90dc1684135ab1d2fd04240d Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 27 Mar 2018 15:42:36 +0200 Subject: [PATCH] ldapurl: Update docstring of LDAPUrlExtensions.__setitem__ --- Lib/ldapurl.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Lib/ldapurl.py b/Lib/ldapurl.py index 1edc2fe..7ed1d8a 100644 --- a/Lib/ldapurl.py +++ b/Lib/ldapurl.py @@ -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 "