Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
refscrub
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Software Public
PASSOFT
refscrub
Commits
85d7e7d2
Commit
85d7e7d2
authored
4 years ago
by
Maeva Pourpoint
Browse files
Options
Downloads
Patches
Plain Diff
Use open() instead of io.open()
parent
b33fead2
No related branches found
No related tags found
1 merge request
!3
Update code to run under Python3 + Conda packaging
Pipeline
#806
passed with stage
in 38 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
refscrub/refscrub.py
+0
-1
0 additions, 1 deletion
refscrub/refscrub.py
setup.py
+0
-1
0 additions, 1 deletion
setup.py
tests/test_refscrub.py
+2
-3
2 additions, 3 deletions
tests/test_refscrub.py
with
2 additions
and
5 deletions
refscrub/refscrub.py
+
0
−
1
View file @
85d7e7d2
...
@@ -26,7 +26,6 @@ Packaged with conda.
...
@@ -26,7 +26,6 @@ Packaged with conda.
import
argparse
import
argparse
import
struct
import
struct
import
sys
import
sys
from
io
import
open
from
os.path
import
basename
,
getsize
,
isfile
from
os.path
import
basename
,
getsize
,
isfile
PROG_VERSION
=
'
2020.216
'
PROG_VERSION
=
'
2020.216
'
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
0
−
1
View file @
85d7e7d2
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
"""
The setup script.
"""
"""
The setup script.
"""
from
io
import
open
from
setuptools
import
setup
,
find_packages
from
setuptools
import
setup
,
find_packages
with
open
(
'
README.rst
'
,
'
rt
'
)
as
readme_file
:
with
open
(
'
README.rst
'
,
'
rt
'
)
as
readme_file
:
...
...
This diff is collapsed.
Click to expand it.
tests/test_refscrub.py
+
2
−
3
View file @
85d7e7d2
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
"""
Tests for `refscrub` package.
"""
"""
Tests for `refscrub` package.
"""
import
argparse
import
argparse
import
io
import
os
import
os
import
unittest
import
unittest
...
@@ -42,8 +41,8 @@ class TestRefscrub(unittest.TestCase):
...
@@ -42,8 +41,8 @@ class TestRefscrub(unittest.TestCase):
main
()
main
()
self
.
assertTrue
(
os
.
path
.
isfile
(
'
scrubsum.txt
'
),
"
Error! Summary file
"
self
.
assertTrue
(
os
.
path
.
isfile
(
'
scrubsum.txt
'
),
"
Error! Summary file
"
"
not created.
"
)
"
not created.
"
)
with
io
.
open
(
"
scrubsum.txt
"
,
"
rt
"
)
as
f_out
:
with
open
(
"
scrubsum.txt
"
,
"
rt
"
)
as
f_out
:
out
=
f_out
.
readlines
()
out
=
f_out
.
readlines
()
with
io
.
open
(
TEST_SUMMARY
,
"
rt
"
)
as
f_test
:
with
open
(
TEST_SUMMARY
,
"
rt
"
)
as
f_test
:
test
=
f_test
.
readlines
()
test
=
f_test
.
readlines
()
self
.
assertEqual
(
out
,
test
)
self
.
assertEqual
(
out
,
test
)
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