X-Git-Url: http://git.onelab.eu/?p=pcucontrol.git;a=blobdiff_plain;f=pcucontrol%2Futil%2Fcommand.py;fp=pcucontrol%2Futil%2Fcommand.py;h=74b5faeeb93fb23aca2e4ed8eddadb163216e9df;hp=42e00a92ebdf296da88c39e2cf78d66ab664be94;hb=4c1af5526615cf1958b801176c802283d7d4d308;hpb=f6416e374b2387aaa6a0966059aa7ec283bf1f28 diff --git a/pcucontrol/util/command.py b/pcucontrol/util/command.py index 42e00a9..74b5fae 100644 --- a/pcucontrol/util/command.py +++ b/pcucontrol/util/command.py @@ -91,7 +91,11 @@ class CMD: def run(self, cmd, timeout=COMMAND_TIMEOUT*2): - s = Sopen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True) + s = Sopen(cmd, shell=True, + stdin=subprocess.PIPE, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + close_fds=True) self.s = s (f_in, f_out, f_err) = (s.stdin, s.stdout, s.stderr) lout, lin, lerr = select([f_out], [], [f_err], timeout)