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

fromstring() --> frombytes() #18

Closed
wants to merge 1 commit into from
Closed

Conversation

olgabot
Copy link
Contributor

@olgabot olgabot commented Sep 14, 2018

This build was failing because the following error was printed too many times and Travis killed the job:

 /home/travis/build/dib-lab/sourmash/.tox/py36/src/bamnostic/bamnostic/core.py:203: DeprecationWarning:fromstring() is deprecated. Use frombytes() instead.

Hopefully this passes and can be smoothly added!

[This build](https://travis-ci.org/dib-lab/sourmash/jobs/428784272) was failing because the following error was printed too many times and Travis killed the job:

```
 /home/travis/build/dib-lab/sourmash/.tox/py36/src/bamnostic/bamnostic/core.py:203: DeprecationWarning:fromstring() is deprecated. Use frombytes() instead.
```

Hopefully this passes and can be smoothly added!
Copy link
Owner

@betteridiot betteridiot left a comment

Choose a reason for hiding this comment

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

From first look, this seems like an easy fix. However, it is only an easy fix for Python 3. Python 2's array.array does not have a frombytes() method, and therefore this would break those pipelines.

I will go a different way, and make a new utility class to handle the cross-compatibility.

Great catch and PR though.

@betteridiot
Copy link
Owner

This was fixed in ea0de96. Thank you for pointing this out @olgabot

@betteridiot
Copy link
Owner

Version v0.9.1 fixes your issue.

@olgabot
Copy link
Contributor Author

olgabot commented Sep 17, 2018

Thank you!

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.

2 participants