summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-03-24 11:56:16 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-03-24 15:11:21 -1000
commit7603bfdd0838320328ed73c00dc278676803412c (patch)
tree5f6ed3fc9db617752d34ea46c6d2bda775b69bca /iw
parent01d71b73beb0805b1b28bf1a9a776e317a68148a (diff)
downloadanaconda-7603bfdd0838320328ed73c00dc278676803412c.tar.gz
anaconda-7603bfdd0838320328ed73c00dc278676803412c.tar.xz
anaconda-7603bfdd0838320328ed73c00dc278676803412c.zip
Remove unnecessary istruefalse() function.
Diffstat (limited to 'iw')
-rw-r--r--iw/partition_ui_helpers_gui.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index fb311df44..e6324f662 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]