Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Peter Sherwood
athena
Commits
5d8221e8
Commit
5d8221e8
authored
4 years ago
by
Frank Winklmeier
Browse files
Options
Downloads
Patches
Plain Diff
PyUtils: Delete unused bwdcompat module
parent
4596782f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tools/PyUtils/python/bwdcompat.py
+0
-32
0 additions, 32 deletions
Tools/PyUtils/python/bwdcompat.py
with
0 additions
and
32 deletions
Tools/PyUtils/python/bwdcompat.py
deleted
100644 → 0
+
0
−
32
View file @
4596782f
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
import
subprocess
### monkey-patch subprocess (fwd compat w/ py-3.x) ----------------------------
def
getstatusoutput
(
cmd
,
*
popenargs
,
**
kwargs
):
if
isinstance
(
cmd
,
basestring
):
cmd
=
cmd
.
split
()
if
'
stdout
'
in
kwargs
:
raise
ValueError
(
'
stdout argument not allowed, it will be overridden.
'
)
kwargs
[
'
stdout
'
]
=
subprocess
.
PIPE
p
=
subprocess
.
Popen
(
cmd
,
*
popenargs
,
**
kwargs
)
sc
=
p
.
returncode
if
sc
is
None
:
sc
=
0
fd
=
p
.
stdout
out
=
''
.
join
(
list
(
fd
.
readlines
()))
if
out
[
-
1
:]
==
'
\n
'
:
out
=
out
[:
-
1
]
return
sc
,
out
subprocess
.
getstatusoutput
=
getstatusoutput
del
getstatusoutput
def
getstatus
(
cmd
,
*
popenargs
,
**
kwargs
):
return
subprocess
.
getstatusoutput
(
cmd
,
*
popenargs
,
**
kwargs
)[
0
]
subprocess
.
getstatus
=
getstatus
del
getstatus
def
getoutput
(
cmd
,
*
popenargs
,
**
kwargs
):
return
subprocess
.
getstatusoutput
(
cmd
,
*
popenargs
,
**
kwargs
)[
1
]
subprocess
.
getoutput
=
getoutput
del
getoutput
### ---------------------------------------------------------------------------
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