From 95f5e06a8fee8884a40e230f1247c966002fc8aa Mon Sep 17 00:00:00 2001
From: Nico Maillet <nicolas.maillet@pasteur.fr>
Date: Wed, 3 Feb 2021 16:38:42 +0100
Subject: [PATCH] Remove fix for python3.5 compatibility

---
 rpg/core.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rpg/core.py b/rpg/core.py
index e670e4c..d9f5585 100644
--- a/rpg/core.py
+++ b/rpg/core.py
@@ -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("@"):
-- 
GitLab