-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Bio.bgzf file mode check for BytesIO (#4270)
* Simplify detection of open files being in binary mode by reading 0 bytes and checking that the result is b"" in BgzfReader and BgzfWriter. * Removed an unused variable in BgzfWriter._write_block * Added tests passing binary and non-binary fileobj arguments to bgzf.BgzfReader and bgzf.BgzfWriter
- Loading branch information
1 parent
ca64586
commit c4a47ff
Showing
2 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters