Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rpg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas MAILLET
rpg
Commits
2652afef
Commit
2652afef
authored
4 years ago
by
Nicolas MAILLET
Browse files
Options
Downloads
Patches
Plain Diff
Fix for python3.5 compatibility
parent
1433b5b4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#47177
failed
4 years ago
Stage: py35
Stage: py36
Stage: py37
Stage: py38
Stage: py39
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rpg/core.py
+1
-1
1 addition, 1 deletion
rpg/core.py
with
1 addition
and
1 deletion
rpg/core.py
+
1
−
1
View file @
2652afef
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment