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

Enable Bytes and deprecation warnings #458

Closed
wants to merge 5 commits into from

Conversation

tiran
Copy link
Member

@tiran tiran commented Feb 10, 2017

  • Enable bytes and deprecation warnings
  • Fix a couple of bytes and deprecation warnings

https://fedorahosted.org/freeipa/ticket/6631

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Avoid comparison of bytes with int in _is_null() check. b'' == 0
triggers a BytesWarning.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
bytes triggers a BytesWarning error.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran tiran changed the title Bytes deprecation warnings Enable Bytes and deprecation warnings Feb 10, 2017
@abbra
Copy link
Contributor

abbra commented Feb 10, 2017

Thanks. LGTM.

Copy link
Contributor

@MartinBasti MartinBasti left a comment

Choose a reason for hiding this comment

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

Works as expected

@MartinBasti MartinBasti added the ack Pull Request approved, can be merged label Feb 10, 2017
@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label Feb 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants