From e4b17b5059e5156a7602a2f4ea2f298dcf9b1e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 3 Jul 2020 17:46:13 +0200 Subject: [PATCH] misc: don't use capture_output as it requires python 3.7 (#44787) --- wcs/wf/export_to_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcs/wf/export_to_model.py b/wcs/wf/export_to_model.py index 8436e86cd..0bba5cf4e 100644 --- a/wcs/wf/export_to_model.py +++ b/wcs/wf/export_to_model.py @@ -82,7 +82,7 @@ try: lo_output = subprocess.run( ['libreoffice', '--headless', '--convert-to', 'pdf', infile.name, '--outdir', temp_dir], - check=True, capture_output=True) + check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) if os.path.exists(infile.name + '.pdf'): break # sometimes libreoffice fails and sometimes it's ok