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:
print(">>> ", args_as_string(cmd))
import subprocess
kwargs = dict(
stderr=subprocess.PIPE,
stdout=subprocess.PIPE,
)
kwargs = {
"stderr": subprocess.PIPE,
"stdout": subprocess.PIPE,
}
if cwd is not None:
kwargs["cwd"] = cwd