Lack of absolute imports can lead to ImportError in projects that use flask-ldap-login.
For example, if myproject has a ldap.py module and includes flask-ldap-login, the import ldapin flask_ldap_login/forms.py can lead to ambiguous imports in myproject.
The pull request just adds from __future__ import absolute_import to flask-ldap-login so that it does not happen anymore.
Lack of absolute imports can lead to
ImportError
in projects that use flask-ldap-login.For example, if myproject has a
ldap.py
module and includes flask-ldap-login, theimport ldap
inflask_ldap_login/forms.py
can lead to ambiguous imports in myproject.The pull request just adds
from __future__ import absolute_import
to flask-ldap-login so that it does not happen anymore.Thanks ! Stephane