Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
execo
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
IMBERT Matthieu
execo
Commits
a6960a78
Commit
a6960a78
authored
7 years ago
by
IMBERT Matthieu
Browse files
Options
Downloads
Patches
Plain Diff
[execo_engine] utils: fix py3 issue for redirect_outputs and copy_outputs
parent
af00faa9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/execo_engine/utils.py
+2
-2
2 additions, 2 deletions
src/execo_engine/utils.py
with
2 additions
and
2 deletions
src/execo_engine/utils.py
+
2
−
2
View file @
a6960a78
...
@@ -76,7 +76,7 @@ def redirect_outputs(stdout_filename, stderr_filename):
...
@@ -76,7 +76,7 @@ def redirect_outputs(stdout_filename, stderr_filename):
# additionnaly force stdout unbuffered by reopening stdout
# additionnaly force stdout unbuffered by reopening stdout
# file descriptor with write mode
# file descriptor with write mode
# and 0 as the buffer size (unbuffered)
# and 0 as the buffer size (unbuffered)
sys
.
stdout
=
os
.
fdopen
(
sys
.
stdout
.
fileno
(),
'
w
'
,
0
)
sys
.
stdout
=
os
.
fdopen
(
sys
.
stdout
.
fileno
(),
'
w
'
,
1
if
sys
.
version_info
>=
(
3
,)
else
0
)
def
copy_outputs
(
stdout_filename
,
stderr_filename
):
def
copy_outputs
(
stdout_filename
,
stderr_filename
):
"""
Copy, and optionnaly merge, stdout and stderr to file(s)
"""
"""
Copy, and optionnaly merge, stdout and stderr to file(s)
"""
...
@@ -87,7 +87,7 @@ def copy_outputs(stdout_filename, stderr_filename):
...
@@ -87,7 +87,7 @@ def copy_outputs(stdout_filename, stderr_filename):
# additionnaly force stdout unbuffered by reopening stdout
# additionnaly force stdout unbuffered by reopening stdout
# file descriptor with write mode
# file descriptor with write mode
# and 0 as the buffer size (unbuffered)
# and 0 as the buffer size (unbuffered)
sys
.
stdout
=
os
.
fdopen
(
sys
.
stdout
.
fileno
(),
'
w
'
,
0
)
sys
.
stdout
=
os
.
fdopen
(
sys
.
stdout
.
fileno
(),
'
w
'
,
1
if
sys
.
version_info
>=
(
3
,)
else
0
)
def
slugify
(
value
):
def
slugify
(
value
):
"""
"""
...
...
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