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

Reader compatible with files opened in bytes mode #305

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jkoestinger
Copy link

I needed to parse VCF files that I could only open in byte mode (it was streamed files), therefore I adapted the code in order to do so. The only modifications are to decode bytes to str when needed, in order to be compliant with the 'str.startswith' methods.

With this version it is now possible to give files opened in 'rb' mode to the Reader.

@jkoestinger jkoestinger changed the title Fix for bytes-based files Reader compatible with files opened in bytes mode Oct 2, 2018
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.

1 participant