Skip to content

Commit

Permalink
only use _ldap when setting LIBLDAP_API_INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Nov 18, 2017
1 parent 6c65d12 commit 20ca4e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/ldap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
assert _ldap.__version__==__version__, \
ImportError('ldap %s and _ldap %s version mismatch!' % (__version__,_ldap.__version__))
from _ldap import *
# call into libldap to initialize it right now
LIBLDAP_API_INFO = _ldap.get_option(_ldap.OPT_API_INFO)

OPT_NAMES_DICT = {}
for k,v in vars(_ldap).items():
Expand Down

0 comments on commit 20ca4e8

Please sign in to comment.