[anaconda-storage-branch PATCH 2/5] Remove unnecessary istruefalse() function.

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

 



---
 iw/partition_ui_helpers_gui.py |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index fb311df..e6324f6 100644
--- a/iw/partition_ui_helpers_gui.py
+++ b/iw/partition_ui_helpers_gui.py
@@ -35,11 +35,6 @@ from storage.formats import *
 import gettext
 _ = lambda x: gettext.ldgettext("anaconda", x)
 
-def istruefalse(val):
-    if val is None or not val:
-        return False
-    return True
-
 class WideCheckList(checklist.CheckList):
     def toggled_item(self, data, row):
 
@@ -318,7 +313,7 @@ def createPreExistFSOptionSection(origrequest, maintable, row, mountCombo,
 
     formatcb = gtk.CheckButton(label=_("_Format as:"))
     maintable.attach(formatcb, 0, 1, row, row + 1)
-    formatcb.set_active(istruefalse(not origfs.exists))
+    formatcb.set_active(not origfs.exists)
     rc["formatcb"] = formatcb
 
     fstypeCombo = createFSTypeMenu(origfs, fstypechangeCB,
@@ -336,7 +331,7 @@ def createPreExistFSOptionSection(origrequest, maintable, row, mountCombo,
 
     if origfs.migratable:
 	migratecb = gtk.CheckButton(label=_("Mi_grate filesystem to:"))
-        migratecb.set_active(istruefalse(origfs.migrate))
+        migratecb.set_active(origfs.migrate)
 
 	migtypes = [origfs.migrationTarget]
 
-- 
1.6.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux