ldap.open() SSL patch

Michael Ströder michael at stroeder.com
Sun Apr 18 14:23:33 CEST 2010

ygormutti at dcc.ufba.br wrote:
> Michael Ströder <michael at stroeder.com>:
>> Yes, you're right. I would accept such a patch. ;-)
>> At least it's documented:
>> http://www.python-ldap.org/doc/html/ldap.html#ldap.open
> I was using ldap.open because there are many code samples where it's
> still used, in the tubes.
> The new patch is attached.

Just raising DeprecationWarning exception breaks existing code. I have to
reject your patch. ;-)

I've checked in a solution which only outputs a warning (just like md5.py does
in recent Python releases). So old code should still work.

Ciao, Michael.

More information about the python-ldap mailing list