Author: adc Date: Sun May 4 22:23:36 2014 New Revision: 1592425 URL: http://svn.apache.org/r1592425 Log: Handy __repr__ function for ExecutionError
Modified: labs/panopticon/src/asf/utils/execute.py Modified: labs/panopticon/src/asf/utils/execute.py URL: http://svn.apache.org/viewvc/labs/panopticon/src/asf/utils/execute.py?rev=1592425&r1=1592424&r2=1592425&view=diff ============================================================================== --- labs/panopticon/src/asf/utils/execute.py (original) +++ labs/panopticon/src/asf/utils/execute.py Sun May 4 22:23:36 2014 @@ -27,6 +27,9 @@ class ExecutionError(ValueError): self.stdout = stdout self.stderr = stderr + def __repr__(self): + return 'ExecutionError(%r, %r, %r)' % (self.code, self.stdout, self.stderr) + def execute(command): """ Executes a command and returns both stdout and stderr as lists --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@labs.apache.org For additional commands, e-mail: commits-h...@labs.apache.org