From fdf629196062319bba60fa13c606ed4ba80a41ff Mon Sep 17 00:00:00 2001 From: Joel Andres Granados Date: Fri, 11 Jul 2008 16:40:04 +0200 Subject: Fix the format of the firstaidkit file. - Indendtation should be 4 spaces. There was a function indented with 8 spaces. - Lines should be shorted than 80 chars. It just looks pretty :) Think of terminals whith only 80 char of length. Think of debuging in rescue mode. - Change also the print statements. Just getting ready for python 3000. - Get some spaces between elifs - There should not be any lines ending in spaces. - This can all be read in the python code conventions http://www.python.org/dev/peps/pep-0008/ --- pyfirstaidkit/errors.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'pyfirstaidkit/errors.py') diff --git a/pyfirstaidkit/errors.py b/pyfirstaidkit/errors.py index 9ce9500..a32d1ec 100644 --- a/pyfirstaidkit/errors.py +++ b/pyfirstaidkit/errors.py @@ -1,16 +1,16 @@ # First Aid Kit - diagnostic and repair tool for Linux # Copyright (C) 2007 Martin Sivak -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -18,7 +18,8 @@ class InvalidFlowStateException(Exception): def __init__(self, flow): - self.message="There appears to be an inconsistency with the %s varialbe. " % flow + self.message="There appears to be an inconsistency with the %s \ + varialbe. " % flow def __str__(self): return self.message @@ -37,10 +38,11 @@ class InvalidPluginNameException(Exception): class GeneralPluginException(Exception): """General exception - This exception should be used for all exceptions that come from the plugins and - have no specific exception class yet. + This exception should be used for all exceptions that come from the + plugins and have no specific exception class yet. """ def __init__(self, plugin, message): - self.message="There was an exception in plugin %s with message %s"%(plugin,message) + self.message="There was an exception in plugin %s with message %s"% \ + (plugin,message) def __str__(self): return self.message -- cgit