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

[Python3] Make echo-content-escaped.py py3-compliant #26615

Merged
merged 1 commit into from Nov 23, 2020

Conversation

stephenmcgruer
Copy link
Contributor

Iterating over a 'bytes' object in Python gives ints, not bytes, and in
Python 3 it is a type error to compare ints to bytes like this method
does. Cast back to bytes to avoid the error.

Iterating over a 'bytes' object in Python gives ints, not bytes, and in
Python 3 it is a type error to compare ints to bytes like this method
does. Cast back to bytes to avoid the error.
@stephenmcgruer stephenmcgruer merged commit 320b4fa into master Nov 23, 2020
@stephenmcgruer stephenmcgruer deleted the smcgruer/fix-file-handler branch November 23, 2020 16:25
Hexcles added a commit that referenced this pull request Nov 25, 2020
The fix in #26615 only works in Py3.

This time we make it compatible with Py2 & Py3.
Hexcles added a commit that referenced this pull request Nov 25, 2020
The fix in #26615 only works in Py3.

This time we make it compatible with Py2 & Py3.
Hexcles added a commit that referenced this pull request Nov 25, 2020
The fix in #26615 only works in Py3.

This time we make it compatible with Py2 & Py3.
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.

None yet

4 participants