diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-01-12 22:50:24 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-01-14 10:46:27 +0100 |
commit | df71485041f40c5a2833900d6fae2bddefa52dd1 (patch) | |
tree | 5c266614b3eb81e5de572bb1f107e72fabef21e7 /storage/formats/fs.py | |
parent | 8e52cd10af2e6881db8ad567cfdbea1fe9388acc (diff) | |
download | anaconda-df71485041f40c5a2833900d6fae2bddefa52dd1.tar.gz anaconda-df71485041f40c5a2833900d6fae2bddefa52dd1.tar.xz anaconda-df71485041f40c5a2833900d6fae2bddefa52dd1.zip |
Fixup various errors detected by pylint
I've been running pylint on a subset of anaconda:
booty storage iw/*.py platform.py
And it has found various errors this commit fixes:
- Restore line accidently dropped from iscsi.py
- execWithPulseProgress should propagate the return value of
execWithCallback
- storage.formats.fs:535 (FS.doCheck): self.intf should be just intf
- storage.formats.fs: add missing "import sys" (for sys.exit)
- advanced_config.py add missing import for NetworkConfigurator
- lvm_dialog_gui.py: VolumeGroupEditor.editLogicalVolume dev was renamed to d
- partition_gui.py: remove an unneeded semicolon
- partition_gui.py: PartitionWindow.createCB rc should be dialog_rc
- storage.FSSet.write: put docstring in the proper place
- platform.Sparc.minimumSector: sectors should be sector
Diffstat (limited to 'storage/formats/fs.py')
-rw-r--r-- | storage/formats/fs.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/storage/formats/fs.py b/storage/formats/fs.py index 614c9d334..5c64b0928 100644 --- a/storage/formats/fs.py +++ b/storage/formats/fs.py @@ -29,6 +29,7 @@ """ import math import os +import sys import tempfile import selinux import isys @@ -532,9 +533,9 @@ class FS(DeviceFormat): "interactively. Restart installation after you " "have corrected the problems on the filesystem.") - self.intf.messageWindow(_("Unrecoverable Error"), - hdr + "\n\n" + msg + "\n\n" + help, - custom_icon='error') + intf.messageWindow(_("Unrecoverable Error"), + hdr + "\n\n" + msg + "\n\n" + help, + custom_icon='error') sys.exit(0) else: raise FSError(hdr + msg) |