Michael Ströder <mich...@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. I hope to contribute with bigger patches in
future. :)
Thank you for the attention.
--
Ygor Mutti (http://icaju.com - @Mamutti)
--- functions.py 2010-04-17 16:44:51.848296358 -0300
+++ functions2.py 2010-04-17 16:50:11.264295190 -0300
@@ -101,6 +101,7 @@
File object where to write the trace output to.
Default is to use stdout.
"""
+ raise DeprecationWarning('ldap.open is deprecated. Use ldap.initialize')
return initialize('ldap://%s:%d' % (host,port),trace_level,trace_file,trace_stack_limit)
init = open
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev