Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade python-ldap #1728

Merged
merged 5 commits into from
Jun 5, 2018
Merged

Conversation

lunkwill42
Copy link
Member

New versions of python-ldap were introduced earlier in 2018 which support Python 3. This enables us to move forward with our push towards Python 3.

This sets out to upgrade the python-ldap dependency and updating the codebase to work on both Python 2 and 3. This document was very useful in doing so:

https://github.com/python-ldap/python-ldap/blob/3.0/Doc/bytes_mode.rst

ldap library should now be present also under python 3, and tests should always
run

avoid use of str, since it's ambivalent
…ding

we need, however, to decode result values according to the configured encoding,
since values will still be bytestrings.
Copy link
Contributor

@hmpf hmpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good

Copy link
Collaborator

@jmbredal jmbredal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The big "no more encoding" upgrade. 👍

@lunkwill42 lunkwill42 added this to the 4.9.0 milestone Jun 5, 2018
@lunkwill42 lunkwill42 merged commit da77e91 into Uninett:master Jun 5, 2018
@lunkwill42 lunkwill42 deleted the upgrade-python-ldap branch December 17, 2019 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants