Projet

Général

Profil

0001-python3-retrieve-python-ldap-major-version-number-32.patch

Paul Marillonnet, 16 avril 2019 17:45

Télécharger (971 octets)

Voir les différences:

Subject: [PATCH] python3: retrieve python-ldap major version number (#32399)

 src/authentic2/backends/ldap_backend.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/authentic2/backends/ldap_backend.py
6 6
    from ldap.dn import escape_dn_chars
7 7
    from ldap.ldapobject import ReconnectLDAPObject as NativeLDAPObject
8 8
    from ldap.controls import SimplePagedResultsControl
9
    PYTHON_LDAP3 = map(int, ldap.__version__.split('.')) >= [3]
9
    PYTHON_LDAP3 = list(map(int, ldap.__version__.split('.'))) >= [3]
10 10
    LDAPObject = NativeLDAPObject
11 11
except ImportError:
12 12
    ldap = None
13
-