-
Notifications
You must be signed in to change notification settings - Fork 12
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
[WIP] Python 3 support #51
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
py27 tests pass
python36 still does not work
$ tox -- --test=test_empty --pdb
This way we don't need to encode strings for every node, which breaks with Python 3.
This way any changes made there will also apply to all tox environments.
They need to be fed with bytes as their "magic header" is written as bytes (in the `gzip` module) and the `generateXML` methods also "return a round-trippable XML representation".
This fixes a number of "a bytes-like object is required, not 'str'" and "Must be bytes" errors.
Fix RuntimeError: dictionary changed size during iteration
dataflake
approved these changes
May 13, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my point of view the branch is now ready for merging.
This was referenced May 13, 2018
@icemac you're right, just did that |
@icemac Please don't merge to master until I have fixed the CMFCore failures with this branch |
@dataflake Don't worry, I'll keep my hands away from this PR. 😁 |
17 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I took the existing py3 branch and made some changes to get tests passing on Python 2.7 and 3.6.
The overall approach is:
I'm not sure if this approach is right so it may be best to try using this to port more of CMF before blessing it.
Looks like some more work may be needed to support 3.4.Zope itself no longer supports Python 3.4.Closes #51.