Commit 95f5e06a authored by Nicolas  MAILLET's avatar Nicolas MAILLET
Browse files

Remove fix for python3.5 compatibility

parent 40938218
......@@ -219,7 +219,7 @@ def next_read(file, offset_start, offset_end):
:type offset_end: int
"""
# Is it a GZIP file?
test_file = open(str(file), "rb")
test_file = open(file, "rb")
# Get the first values
magic = test_file.read(2)
# Close the file
......@@ -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(str(file), "rb")) as in_file:
else open(file, "rb")) as in_file:
first_line = in_file.readline().decode('utf-8')
# FASTQ file
if first_line.startswith("@"):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment