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

Added Python 3 compatibility #10

Merged
merged 12 commits into from Feb 12, 2016
Merged

Conversation

vidartf
Copy link
Contributor

@vidartf vidartf commented Feb 1, 2016

This should make the codebase compatible with Python 3. There might still be some string encoding issues left (always hard to track down), but as far as I can see this works as it should.

Default encoding by HTML supplier is UTF-8, and we never set it to
anything else.
The container is modified during iteration, so ensure we're working on a
copy on both python 2 and 3.
Failed previously for such statements as `python -m rested.app`.
@vidartf vidartf mentioned this pull request Feb 1, 2016
@jonathanrocher
Copy link

Thanks for doing this @vidartf ! Will try to take a look in the next few days...

@@ -43,4 +43,6 @@ def main():


if __name__ == '__main__':
if __package__ is None:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this useful?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification. Wasn't aware of that pep.

@jonathanrocher
Copy link

Quick usability test on Python2.7 and Python 3.5 was successful.

@jonathanrocher
Copy link

LGTM. Thanks!

@jonathanrocher
Copy link

Will merge today if no more comments come in.

jonathanrocher pushed a commit that referenced this pull request Feb 12, 2016
Added Python 3 compatibility
@jonathanrocher jonathanrocher merged commit cafaf52 into enthought:master Feb 12, 2016
@vidartf vidartf deleted the python3 branch March 17, 2016 14:24
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.

None yet

2 participants