Skip to content

More bytesmode #152

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

Merged
merged 5 commits into from
Jan 10, 2018
Merged

More bytesmode #152

merged 5 commits into from
Jan 10, 2018

Conversation

tiran
Copy link
Member

@tiran tiran commented Jan 5, 2018

See #147

@encukou
Copy link
Member

encukou commented Jan 5, 2018

It's a hack, but looks reasonable. I was considering doing something similar :)

I'll do a review next week.

@codecov
Copy link

codecov bot commented Jan 5, 2018

Codecov Report

Merging #152 into master will increase coverage by 0.21%.
The diff coverage is 97.61%.

@@            Coverage Diff             @@
##           master     #152      +/-   ##
==========================================
+ Coverage   69.34%   69.56%   +0.21%     
==========================================
  Files          49       49              
  Lines        4707     4731      +24     
  Branches      808      817       +9     
==========================================
+ Hits         3264     3291      +27     
+ Misses       1088     1085       -3     
  Partials      355      355
Impacted Files Coverage Δ
Lib/ldap/schema/models.py 71.07% <100%> (ø) ⬆️
Lib/ldap/ldapobject.py 71.16% <97.05%> (+2.94%) ⬆️
Lib/slapdtest/_slapdtest.py 82.72% <0%> (-1.48%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ae51ed...f8f8c9c. Read the comment docs.

tiran and others added 5 commits January 10, 2018 10:49
Schema attribute names must be text in Python 2, too. Otherwise
read_subschemasubentry_s() fails with bytes error.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Tests marked with expected failure are currently affected by bug python-ldap#147.

See: python-ldap#147

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Several default arguments are not compatible with bytes mode. Default to
bytes in bytes mode.

See: python-ldap#147

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Signed-off-by: Christian Heimes <cheimes@redhat.com>

``filterstr=None`` is equivalent to ``filterstr='(objectClass=*)'``.

Copy link
Member

Choose a reason for hiding this comment

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

Looks good; the only nitpick I found is to say equivalent instead of equal here.

@encukou encukou merged commit 91438fd into python-ldap:master Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants