File: biopython-1.80.patch

package info (click to toggle)
python-pyfaidx 0.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 816 kB
  • sloc: python: 3,034; makefile: 15; sh: 6
file content (17 lines) | stat: -rw-r--r-- 824 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 "