From 97b1005456585cfc2c915d9b82ef6072fc272d62 Mon Sep 17 00:00:00 2001 From: Andrey Zhavoronkov <41117609+azhavoro@users.noreply.github.com> Date: Mon, 22 Jun 2020 16:06:11 +0300 Subject: [PATCH] compatibility with python 3.6 and lower (#1780) --- cvat/apps/engine/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cvat/apps/engine/utils.py b/cvat/apps/engine/utils.py index dd4a083d..e1ad9ef8 100644 --- a/cvat/apps/engine/utils.py +++ b/cvat/apps/engine/utils.py @@ -71,6 +71,6 @@ def av_scan_paths(*paths): if 'yes' == os.environ.get('CLAM_AV'): command = ['clamscan', '--no-summary', '-i', '-o'] command.extend(paths) - res = subprocess.run(command, capture_output=True) + res = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) if res.returncode: - raise ValidationError(res.stdout) \ No newline at end of file + raise ValidationError(res.stdout)