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

Use six.ensure_binary() to convert strings into bytes in _send_message(). #19

Merged
merged 1 commit into from
Feb 21, 2020

Conversation

dknupp
Copy link
Contributor

@dknupp dknupp commented Dec 16, 2019

Pull request #17 addressed the issue whereby there were occasional
concatenation problems when message header and mesage body were of
different types. However, the original patch, which uses encode(),
was not compatible with python 2 in cases where the body included
characters that fell outside of the strict set of ASCII characters.

@dknupp dknupp assigned timarmstrong and unassigned timarmstrong Dec 16, 2019
@dknupp
Copy link
Contributor Author

dknupp commented Dec 16, 2019

@timarmstrong and @swixx -- whenever you guys have a chance, can you have a look? I confirmed I could connect to a kerberized cluster with both python2 and 3. I don't know if there's anything else I need to test?

@dknupp dknupp force-pushed the use_bytearray_to_encode branch 2 times, most recently from 1a95ca6 to 5051434 Compare December 17, 2019 00:05
@dknupp dknupp changed the title Use bytearray to convert strings into bytes in _send_message(). Use six.ensure_binary() to convert strings into bytes in _send_message(). Dec 17, 2019
Pull request cloudera#17 addressed the issue whereby there were occasional
concatenation problems when message header and mesage body were of
different types. However, the original patch, which uses encode(),
was not compatible with python 2 in cases where the body included
characters that fell outside of the strict set of ASCII characters.
@dknupp dknupp force-pushed the use_bytearray_to_encode branch from 5051434 to 5e2930b Compare February 7, 2020 23:21
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.

4 participants