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

Trivial port to Py3, hello_world works. Still compatible with Py2 #2

Closed
wants to merge 4 commits into from
Closed

Conversation

nickelpro
Copy link
Contributor

This commit is 90% ImportExceptions and one trivial change to encoding strings.
Hope to maintain Py2/Py3 compatibility moving forward

Might break other things, only tested hello_world

…hon2

This commit is 90% ImportExceptions and one trivial change to encoding strings.
Hope to maintain Py2/Py3 compatibility moving forward.

Might break other things, only tested hello_world
Necessary to make disassemble example work in both Python2 and Python3
Decode special case string read to utf-8

Check for unicode in UTF-8 constant so it can accept bytes and unicode
strings
Some "UTF-8 strings" aren't actually valid UTF-8 strings. See avo.class
in the Minecraft 1.8.3 jar for an example of this.

This patch just gracefully skips those broken strings and leaves them as
bytes.
@nickelpro
Copy link
Contributor Author

Irrelevant now

@nickelpro nickelpro closed this Mar 21, 2015
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.

1 participant