Skip to content

test: make binary_sub python 2, 3 compatible #32509

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 1 commit into from
Jun 24, 2020

Conversation

compnerd
Copy link
Member

In order to access stdin, stdout as binary, you must use the
buffer member in Python 3. The replacement of the binary data
requires that pattern and the replacement be byte objects. Convert the
pattern and replacement to UTF-8 encoded bytes.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

In order to access `stdin`, `stdout` as binary, you must use the
`buffer` member in Python 3.  The replacement of the binary data
requires that pattern and the replacement be byte objects.  Convert the
pattern and replacement to UTF-8 encoded bytes.
@compnerd
Copy link
Member Author

@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - f77e794

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - f77e794

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

CC: @tachoknight @drexin

@compnerd compnerd merged commit ecd5041 into swiftlang:master Jun 24, 2020
@compnerd compnerd deleted the binary-is-not-string branch June 24, 2020 18:29
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