ldap3
ldap3 copied to clipboard
python2 not compatible anymore
The setup.py and documentation may suggest that there is python2 compatibility (#900) but python2 will not work with this package anymore.
E.G. is_ip_addr
from ldap3/core/rdns.py
is not python2 compatible and the tests in testRdns
will fail with python 2.7.
Reason: there is a try / except for OSError
but this was intruduced in python3.3, before that version a socket.error
was thrown.
So either also except for socket.error
or drop python2 support at all.