diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-10-28 11:30:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-28 11:30:26 +0200 |
| commit | a8ebbd5fdb9df3d1d2885b24e783757d747dec8e (patch) | |
| tree | a1dc1bc4915e4231848553ea72dd1b4810a64786 /numpy/f2py | |
| parent | a10b20760610be8e820f695f9889060af1a640b9 (diff) | |
| parent | 69a39461de4da2bfc0e6aeeff02c73c0972a8614 (diff) | |
| download | numpy-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__.py | 3 |
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'') |
