Skip to content
Snippets Groups Projects
Commit cd61a015 authored by Auke Klazema's avatar Auke Klazema
Browse files

SW-609: Change file into open.

parent 65bf24ff
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,7 @@ def runCommand(cmdline, input=None): ...@@ -101,7 +101,7 @@ def runCommand(cmdline, input=None):
# Start command # Start command
proc = subprocess.Popen( proc = subprocess.Popen(
cmdline, cmdline,
stdin=subprocess.PIPE if input else file("/dev/null"), stdin=subprocess.PIPE if input else open("/dev/null"),
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
shell=True, shell=True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment