diff options
| author | Joel Andres Granados <jgranado@redhat.com> | 2008-07-11 16:40:04 +0200 |
|---|---|---|
| committer | Joel Andres Granados <jgranado@redhat.com> | 2008-07-14 11:33:13 +0200 |
| commit | fdf629196062319bba60fa13c606ed4ba80a41ff (patch) | |
| tree | 696d0fc36119b954a0d82bc1f20e665e765b7a2a /pyfirstaidkit/utils | |
| parent | c5c3e6cae831bd2d88358bcb1df63f6bab3c66e6 (diff) | |
| download | firstaidkit-fdf629196062319bba60fa13c606ed4ba80a41ff.tar.gz firstaidkit-fdf629196062319bba60fa13c606ed4ba80a41ff.tar.xz firstaidkit-fdf629196062319bba60fa13c606ed4ba80a41ff.zip | |
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/
Diffstat (limited to 'pyfirstaidkit/utils')
| -rw-r--r-- | pyfirstaidkit/utils/__init__.py | 6 | ||||
| -rw-r--r-- | pyfirstaidkit/utils/backup.py | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pyfirstaidkit/utils/__init__.py b/pyfirstaidkit/utils/__init__.py index a6a1086..035de46 100644 --- a/pyfirstaidkit/utils/__init__.py +++ b/pyfirstaidkit/utils/__init__.py @@ -1,16 +1,16 @@ # First Aid Kit - diagnostic and repair tool for Linux # Copyright (C) 2007 Martin Sivak <msivak@redhat.com> -# +# # 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. diff --git a/pyfirstaidkit/utils/backup.py b/pyfirstaidkit/utils/backup.py index f2edd03..5271cd6 100644 --- a/pyfirstaidkit/utils/backup.py +++ b/pyfirstaidkit/utils/backup.py @@ -208,7 +208,7 @@ class FileBackupStore(BackupStoreInterface): else: os.makedirs(self._path) self.__class__._singleton = weakref.proxy(self) - print "Backup system initialized" + print("Backup system initialized") def getBackup(self, id): if not self._backups.has_key(id): @@ -228,7 +228,7 @@ class FileBackupStore(BackupStoreInterface): for id,backup in self._backups.iteritems(): backup.cleanup() os.rmdir(self._path) - print "Backup closed" + print("Backup closed") @classmethod def get(cls, path): |
