From 409382189efa222903ac07de92a72be10640200f Mon Sep 17 00:00:00 2001 From: Nico Maillet <nicolas.maillet@pasteur.fr> Date: Wed, 3 Feb 2021 16:34:00 +0100 Subject: [PATCH] Fix for python3.5 compatibility --- rpg/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpg/core.py b/rpg/core.py index 389bd43..e670e4c 100644 --- a/rpg/core.py +++ b/rpg/core.py @@ -227,7 +227,7 @@ def next_read(file, offset_start, offset_end): # Open the file, GZIP or not with (gzip.open(file, "rb") if magic == b"\x1f\x8b" - else open(file, "rb")) as in_file: + else open(str(file), "rb")) as in_file: first_line = in_file.readline().decode('utf-8') # FASTQ file if first_line.startswith("@"): -- GitLab