summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-10-28 11:30:26 +0200
committerGitHub <noreply@github.com>2022-10-28 11:30:26 +0200
commita8ebbd5fdb9df3d1d2885b24e783757d747dec8e (patch)
treea1dc1bc4915e4231848553ea72dd1b4810a64786 /numpy/f2py
parenta10b20760610be8e820f695f9889060af1a640b9 (diff)
parent69a39461de4da2bfc0e6aeeff02c73c0972a8614 (diff)
downloadnumpy-a8ebbd5fdb9df3d1d2885b24e783757d747dec8e.tar.gz
Merge pull request #22483 from mwtoews/maint-subprocess
MAINT: change subprocess arguments from Python>=3.7
Diffstat (limited to 'numpy/f2py')
-rw-r--r--numpy/f2py/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/f2py/__init__.py b/numpy/f2py/__init__.py
index 84192f738..dbe3df27f 100644
--- a/numpy/f2py/__init__.py
+++ b/numpy/f2py/__init__.py
@@ -104,8 +104,7 @@ def compile(source,
'-c',
'import numpy.f2py as f2py2e;f2py2e.main()'] + args
try:
- cp = subprocess.run(c, stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
+ cp = subprocess.run(c, capture_output=True)
except OSError:
# preserve historic status code used by exec_command()
cp = subprocess.CompletedProcess(c, 127, stdout=b'', stderr=b'')