summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-01-03 08:14:59 +0000
committerJeremy Katz <katzj@redhat.com>2003-01-03 08:14:59 +0000
commitc4c1504ed4b2333222b6aa57bd623d9631133455 (patch)
treef4380c15e1607dbf9e95899fc4ad3bd6bf54551a
parent6dc37b28cd5f7c30dbec803098221dc7334b8a62 (diff)
downloadanaconda-c4c1504ed4b2333222b6aa57bd623d9631133455.tar.gz
anaconda-c4c1504ed4b2333222b6aa57bd623d9631133455.tar.xz
anaconda-c4c1504ed4b2333222b6aa57bd623d9631133455.zip
a few pychecker fixes
-rw-r--r--autopart.py5
-rw-r--r--iw/mouse_gui.py4
-rw-r--r--partitions.py2
3 files changed, 5 insertions, 6 deletions
diff --git a/autopart.py b/autopart.py
index e70018d0c..d9de95222 100644
--- a/autopart.py
+++ b/autopart.py
@@ -89,7 +89,8 @@ def bootAlphaCheckRequirements(part, diskset):
if free.type & parted.PARTITION_FREESPACE:
break
free = disk.next_partition(free)
- if not free or free.geom.start != 1L or getPartSizeMB(free) < 1:
+ if (not free or free.geom.start != 1L or
+ partedUtils.getPartSizeMB(free) < 1):
return BOOTALPHA_NO_RESERVED_SPACE
return PARTITION_SUCCESS
@@ -963,7 +964,7 @@ def doPartitioning(diskset, requests, doRefresh = 1):
elif ret == BOOTALPHA_NO_RESERVED_SPACE:
raise PartitioningWarning, _("Boot partition %s doesn't belong to a disk with enough free space at its beginning for the bootloader to live on. Make sure that there's at least 5MB of free space at the beginning of the disk that contains /boot") %(requests.getBootableRequest().mountpoint)
elif ret == BOOTEFI_NOT_VFAT:
- raise PartioningError, _("Boot partition %s isn't a VFAT partition. EFI won't be able to boot from this partition.") %(requests.getBootableRequest().mountpoint,)
+ raise PartitioningError, _("Boot partition %s isn't a VFAT partition. EFI won't be able to boot from this partition.") %(requests.getBootableRequest().mountpoint,)
elif ret != PARTITION_SUCCESS:
# more specific message?
raise PartitioningWarning, _("Boot partition %s may not meet booting constraints for your architecture. Creation of a boot disk is highly encouraged.") %(requests.getBootableRequest().mountpoint)
diff --git a/iw/mouse_gui.py b/iw/mouse_gui.py
index 4d61b1636..8a6fd7eff 100644
--- a/iw/mouse_gui.py
+++ b/iw/mouse_gui.py
@@ -20,8 +20,6 @@ from re import *
from rhpl.translate import _, N_
from flags import flags
-from gui import setupTreeViewFixupIdleHandler
-
class MouseWindow(InstallWindow):
windowTitle = N_("Mouse Configuration")
htmlTag = "mouse"
@@ -262,7 +260,7 @@ class MouseWindow(InstallWindow):
box.pack_start(sw)
label.set_mnemonic_widget(self.mouseview)
- setupTreeViewFixupIdleHandler(self.mouseview, self.mousestore)
+ gui.setupTreeViewFixupIdleHandler(self.mouseview, self.mousestore)
# then the port list
serial_sw = gtk.ScrolledWindow()
diff --git a/partitions.py b/partitions.py
index 898ebc6aa..9e466e295 100644
--- a/partitions.py
+++ b/partitions.py
@@ -235,7 +235,7 @@ class Partitions:
vgname = vg,
physvols = pvids,
pesize = pesize,
- preexist = 1.
+ preexist = 1,
preexist_size = preexist_size)
vgid = self.addRequest(spec)