[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 2/2] Fix a handful of simple pychecker errors.



---
 booty/__init__.py       |    2 +-
 booty/bootloaderInfo.py |    2 +-
 iw/DeviceSelector.py    |    2 +-
 iw/partition_gui.py     |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/booty/__init__.py b/booty/__init__.py
index cc4801a..b54e194 100644
--- a/booty/__init__.py
+++ b/booty/__init__.py
@@ -20,7 +20,7 @@ import iutil
 from bootloaderInfo import *
 from bootloader import *
 
-class BootyNoKernelWarning:
+class BootyNoKernelWarning(Exception):
     def __init__ (self, value=""):
         self.value = value
 
diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py
index 35e9bc9..94630b1 100644
--- a/booty/bootloaderInfo.py
+++ b/booty/bootloaderInfo.py
@@ -98,7 +98,7 @@ class KernelArguments:
                 import storage
                 if isinstance(d, storage.devices.NetworkStorageDevice):
                     args += " "
-                    args += self.network.dracutSetupString(d)
+                    args += self.anaconda.network.dracutSetupString(d)
 
             s = d.dracutSetupString()
             types[s.split("=")[0]] = True
diff --git a/iw/DeviceSelector.py b/iw/DeviceSelector.py
index 4c50753..9a99c8a 100644
--- a/iw/DeviceSelector.py
+++ b/iw/DeviceSelector.py
@@ -141,7 +141,7 @@ class DeviceSelector(DeviceDisplayer):
 
         if not radioButton:
             self.allButton = gtk.ToggleButton()
-            col.connect("clicked", lambda *args: self.allButton.set_active(self.allButton.get_active() != True))
+            col.connect("clicked", lambda *args: self.allButton.set_active(not self.allButton.get_active()))
 
             col.set_widget(self.allButton)
             self.allButton.show_all()
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index f0227de..4f8a7ea 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -173,7 +173,7 @@ class Slice:
         if self.box:
             self.box.set(outline_color="black", fill_color=self.unsel_col)
 
-class Stripe:
+class Stripe(object):
     """
     canvas -- the canvas where everything goes
     text -- the text that will appear on top of the stripe
-- 
1.6.5.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]