Description: fix bgzf test failure with biopython 1.80
Author: Étienne Mollier <emollier@debian.org>
Forwarded: https://github.com/mdshw5/pyfaidx/pull/199
Last-Update: 2022-11-25
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- python-pyfaidx.orig/pyfaidx/__init__.py
+++ python-pyfaidx/pyfaidx/__init__.py
@@ -409,7 +409,7 @@
                 self._bgzf = True
                 try:
                     # mutable mode is not supported for bzgf anyways
-                    self.file = bgzf.BgzfReader(fileobj=self.file, mode="b")
+                    self.file = bgzf.BgzfReader(fileobj=self.file, mode="rb")
                 except (ValueError, IOError):
                     raise UnsupportedCompressionFormat(
                         "Compressed FASTA is only supported in BGZF format. Use "
