noirello / bonsai

Simple Python 3 module for LDAP, using libldap2 and winldap C libraries.
MIT License
117 stars 33 forks source link

Add support for async with #13

Closed noirello closed 6 years ago

noirello commented 7 years ago

LDAPConnection needs to implement __aenter__ and __aexit__ methods to be able to use async with (as Issue #12 pointed it out).