From cd61a015e1a21c528512ca3b45538c0ebdb82530 Mon Sep 17 00:00:00 2001 From: Auke Klazema <klazema@astron.nl> Date: Mon, 25 Mar 2019 13:51:00 +0000 Subject: [PATCH] SW-609: Change file into open. --- MAC/Services/src/PipelineControl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAC/Services/src/PipelineControl.py b/MAC/Services/src/PipelineControl.py index 5e00a09f5ae..a430d2b651e 100755 --- a/MAC/Services/src/PipelineControl.py +++ b/MAC/Services/src/PipelineControl.py @@ -101,7 +101,7 @@ def runCommand(cmdline, input=None): # Start command proc = subprocess.Popen( cmdline, - stdin=subprocess.PIPE if input else file("/dev/null"), + stdin=subprocess.PIPE if input else open("/dev/null"), stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True, -- GitLab