communicate() first returns stdout not stderr.

This commit is contained in:
Pedro Algarvio 2013-08-22 11:16:23 +01:00
parent d4ac22797c
commit 5bfcbdb914

View File

@ -211,6 +211,6 @@ class NonBlockingPopen(subprocess.Popen):
self.stderr_buff.flush()
self.stderr_buff.seek(0)
if self.universal_newlines:
return (self._translate_newlines(self.stderr_buff.read()),
self._translate_newlines(self.stdout_buff.read()))
return self.stderr_buff.read(), self.stdout_buff.read()
return (self._translate_newlines(self.stdout_buff.read()),
self._translate_newlines(self.stderr_buff.read()))
return self.stdout_buff.read(), self.stderr_buff.read()