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

Fix Python 2.6 support #75

Merged
merged 2 commits into from
Mar 15, 2014
Merged

Conversation

xiongchiamiov
Copy link
Contributor

In #69, explicit decoding of the lines was added. However, this was done using
a keyword argument that isn't supported in Python 2.6.

The good news is that there's no reason to use a keyword argument here - all
versions take the same parameters. So if we just remove it, all is good.

This was hidden by the CI always saying tests passed, so I fixed that as well.

Travis CI uses exit codes to determine if tests pass.  Unfortunately, we
haven't been setting the exit code, so even when tests fail, the return code
has been a success.  Here's an example:

https://travis-ci.org/ioerror/blockfinder/jobs/20337141

Now we check to see if any of the tests failed - and if they did, indicate a
failure by returning the number of failed tests.  This works because of bash's
strange error handling - 0 is true (success), while 1-255 are false (failure).
In ioerror#69, explicit decoding of the lines was added.  However, this was done using
a keyword argument that isn't supported in Python 2.6.

The good news is that there's no reason to use a keyword argument here - all
versions take the same parameters.  So if we just remove it, all is good.
@aagbsn
Copy link
Contributor

aagbsn commented Mar 15, 2014

Whoops, I duplicated this partially in #78. Sorry about that.

@ioerror
Copy link
Owner

ioerror commented Mar 15, 2014

@aagbsn - can you please open a pull request that pulls in the other
commits from here and merges cleanly?

On 3/15/14, aagbsn [email protected] wrote:

Whoops, I duplicated this partially in #78. Sorry about that.


Reply to this email directly or view it on GitHub:
#75 (comment)

@aagbsn
Copy link
Contributor

aagbsn commented Mar 15, 2014

This should still merge cleanly and looks good to merge.

@ioerror
Copy link
Owner

ioerror commented Mar 15, 2014

Sounds good - thanks for the second set of eyes @aagbsn!

ioerror added a commit that referenced this pull request Mar 15, 2014
@ioerror ioerror merged commit 623f4de into ioerror:master Mar 15, 2014
@d1b
Copy link
Collaborator

d1b commented Mar 16, 2014

I personally think we should be dropping support for python 2.6.

@ioerror
Copy link
Owner

ioerror commented Mar 16, 2014

I don't want to remove support for python 2.6 if we can manage to keep
it. There are still platforms where python 3.0 isn't shipping by
default.

On 3/16/14, David [email protected] wrote:

I personally think we should be dropping support for python 2.6.


Reply to this email directly or view it on GitHub:
#75 (comment)

@d1b
Copy link
Collaborator

d1b commented Mar 17, 2014

@ioerror well to be specific, we need a distribution to ship with python >= 3.3. However, we do not need it to be the default python version used.

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.

4 participants