Python 3.4 support (with compatibility to 2.6 and 2.7) #64
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'm using this lib in one of my projects which I'm now porting to Python 3. While their are numerous PR they all doesn't seem to fit. Plus, they usually do something extra which make them hard to review.
I tried to address the issues you had:
The only thing I didn't address was Python 2.5 support which you said was more optional. I have also setup
tox
(like PR #62) so you can actually run the test on all three Python versions.The only "real" change happened in
readability/readability.py:87
where I simply opted to not check for the type but rather callsplit()
. This made the conversion easier and is more pythonic.As you can see, the changes are actually rather minimal and thus #63 directly compatible with this branch. If you see things you don't like pleases tell me. I'm really determined to bring Python 3 support and I won't stop nagging ;-)