minor cleanup: prefer explicit dict syntax

This commit is contained in:
2014-12-17 16:53:59 +01:00
parent 8d368dc74f
commit bcb5184b45

View File

@@ -145,10 +145,10 @@ def run(cmd, cwd=None):
if VERBOSE: if VERBOSE:
print(">>> ", args_as_string(cmd)) print(">>> ", args_as_string(cmd))
import subprocess import subprocess
kwargs = dict( kwargs = {
stderr=subprocess.PIPE, "stderr": subprocess.PIPE,
stdout=subprocess.PIPE, "stdout": subprocess.PIPE,
) }
if cwd is not None: if cwd is not None:
kwargs["cwd"] = cwd kwargs["cwd"] = cwd