From 2652afefaf18c363aa9a436ef91ae84b409d2dfc Mon Sep 17 00:00:00 2001 From: Nico Maillet <nicolas.maillet@pasteur.fr> Date: Wed, 3 Feb 2021 16:32:52 +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 d9f5585..389bd43 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(file, "rb") + test_file = open(str(file), "rb") # Get the first values magic = test_file.read(2) # Close the file -- GitLab