ldap3 icon indicating copy to clipboard operation
ldap3 copied to clipboard

python2 not compatible anymore

Open susnux opened this issue 3 years ago • 0 comments

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.

susnux avatar Dec 08 '21 21:12 susnux