Skip to content
Snippets Groups Projects
Commit 40938218 authored by Nicolas  MAILLET's avatar Nicolas MAILLET
Browse files

Fix for python3.5 compatibility

parent 2652afef
No related branches found
No related tags found
No related merge requests found
Pipeline #47178 failed
...@@ -227,7 +227,7 @@ def next_read(file, offset_start, offset_end): ...@@ -227,7 +227,7 @@ def next_read(file, offset_start, offset_end):
# Open the file, GZIP or not # Open the file, GZIP or not
with (gzip.open(file, "rb") if magic == b"\x1f\x8b" 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') first_line = in_file.readline().decode('utf-8')
# FASTQ file # FASTQ file
if first_line.startswith("@"): if first_line.startswith("@"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment