Added Popen interface aliases to the execution-result object
@@ -139,22 +139,43 @@ class _Execution(object):
def command(self):
return self._command
+ @property
+ def returncode(self):
+ return self.exit_code
+
@property
def exit_code(self):
+ """
+ Deprecated, use returncode
+ """
if self._exit_code is None:
self._exit_code = self._process.returncode
return self._exit_code
+ @property
+ def stdout(self):
+ return self.std_out
+
@property
def std_out(self):
+ """
+ Deprecated, use stdout
+ """
if self._std_out is not None:
return self._std_out
if self._process.stdout and not self._user_stdout:
self._std_out = self._process.stdout.read()
return self._std_out
+ @property
+ def stderr(self):
+ return self.std_err
+
@property
def std_err(self):
+ """
+ Deprecated, use stderr
+ """
if self._std_err is not None:
return self._std_err
if self._process.stderr and not self._user_stderr:
