labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1606544 - in /labs/panopticon: pan-ezmlm/bin/ezmlm.wsgi pan-utils/src/asf/utils/execute.py
Date Sun, 29 Jun 2014 18:00:00 GMT
Author: adc
Date: Sun Jun 29 17:59:59 2014
New Revision: 1606544

URL: http://svn.apache.org/r1606544
Log:
Need __str__() function defined for logging.

Removed:
    labs/panopticon/pan-ezmlm/bin/ezmlm.wsgi
Modified:
    labs/panopticon/pan-utils/src/asf/utils/execute.py

Modified: labs/panopticon/pan-utils/src/asf/utils/execute.py
URL: http://svn.apache.org/viewvc/labs/panopticon/pan-utils/src/asf/utils/execute.py?rev=1606544&r1=1606543&r2=1606544&view=diff
==============================================================================
--- labs/panopticon/pan-utils/src/asf/utils/execute.py (original)
+++ labs/panopticon/pan-utils/src/asf/utils/execute.py Sun Jun 29 17:59:59 2014
@@ -30,6 +30,9 @@ class ExecutionError(ValueError):
     def __repr__(self):
         return 'ExecutionError(%r, %r, %r)' % (self.code, self.stdout, self.stderr)
 
+    def __str__(self):
+        return self.__repr__()
+
 
 def execute(command):
     """ Executes a command and returns both stdout and stderr as lists



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message