-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add support for python3 #20
Conversation
In python3 bytestrings don't have a `.format()` method.
Catching two types of exceptions is obviously not a perfect solution, but it'll do for now.
python3 doesn't allow that
243a73f
to
fc6af63
Compare
To test with jython run `tox -e jython` or `TOXENV=jython python build.py test`.
Ready for review. |
Here we go ... ! 😳 |
@@ -4,12 +4,12 @@ branches: | |||
- master | |||
language: python | |||
python: | |||
- 2.7 | |||
- 3.5 |
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.
Why not test both? Are we dropping Python 2 support?
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.
Are we dropping Python 2 support?
No.
Why not test both?
We're testing all three of Python 2.7, 3.4, and 3.5, but we're using Tox instead of Travis's matrix functionality.
"""clean jython test results""" | ||
shell('find', '.', '-name', '*.class', '-delete') | ||
shell('rm', '-rf', 'jython-testresults.xml') | ||
|
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.
Fare thee well, Jython.
That function has been removed in AspenWeb/aspen.py#20
AspenWeb/pando.py#493