[csw-devel] SF.net SVN: gar:[12036] csw/mgar/gar/v2/lib/python/shell.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Mon Dec 20 12:58:43 CET 2010
Revision: 12036
http://gar.svn.sourceforge.net/gar/?rev=12036&view=rev
Author: wahwah
Date: 2010-12-20 11:58:43 +0000 (Mon, 20 Dec 2010)
Log Message:
-----------
checkpkg: Add error classes to shell.py
shell.py was missing the error (exception-based) classes to return a useful
error message when necessary.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/shell.py
Modified: csw/mgar/gar/v2/lib/python/shell.py
===================================================================
--- csw/mgar/gar/v2/lib/python/shell.py 2010-12-20 11:58:12 UTC (rev 12035)
+++ csw/mgar/gar/v2/lib/python/shell.py 2010-12-20 11:58:43 UTC (rev 12036)
@@ -1,6 +1,12 @@
import logging
import subprocess
+class Error(Exception):
+ "Generic error"
+
+class ShellError(Error):
+ "Problem running a shell command."
+
class ShellMixin(object):
def ShellCommand(self, args, quiet=False):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list