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

Fix for python3.5 compatibility

parent 1433b5b4
No related branches found
No related tags found
No related merge requests found
Pipeline #47177 failed
...@@ -219,7 +219,7 @@ def next_read(file, offset_start, offset_end): ...@@ -219,7 +219,7 @@ def next_read(file, offset_start, offset_end):
:type offset_end: int :type offset_end: int
""" """
# Is it a GZIP file? # Is it a GZIP file?
test_file = open(file, "rb") test_file = open(str(file), "rb")
# Get the first values # Get the first values
magic = test_file.read(2) magic = test_file.read(2)
# Close the file # Close the file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment