Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nicolas MAILLET
rpg
Commits
40938218
Commit
40938218
authored
Feb 03, 2021
by
Nicolas MAILLET
Browse files
Fix for python3.5 compatibility
parent
2652afef
Pipeline
#47178
failed with stages
in 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rpg/core.py
View file @
40938218
...
...
@@ -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
(
file
,
"rb"
))
as
in_file
:
else
open
(
str
(
file
)
,
"rb"
))
as
in_file
:
first_line
=
in_file
.
readline
().
decode
(
'utf-8'
)
# FASTQ file
if
first_line
.
startswith
(
"@"
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment