summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2022-10-27 10:19:42 +1300
committerMike Taves <mwtoews@gmail.com>2022-10-27 10:38:56 +1300
commit69a39461de4da2bfc0e6aeeff02c73c0972a8614 (patch)
treecdab4df7d48c675a0961c4386dd3cd90d00dd22d /numpy/f2py
parent13d55a3c2f016a58a6e9d6b8086f338e07c7478f (diff)
downloadnumpy-69a39461de4da2bfc0e6aeeff02c73c0972a8614.tar.gz
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'')