summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-09-19 18:02:09 +0000
committerChris Lumens <clumens@redhat.com>2007-09-19 18:02:09 +0000
commitb12a7053f879889a6ae95d2836bc4d64cdd1e40e (patch)
tree641429dcf70f49cba219699c7143b2f135133664 /text.py
parentc5a2d40be1a422d0123ed328328aca8e0e263e56 (diff)
downloadanaconda-b12a7053f879889a6ae95d2836bc4d64cdd1e40e.tar.gz
anaconda-b12a7053f879889a6ae95d2836bc4d64cdd1e40e.tar.xz
anaconda-b12a7053f879889a6ae95d2836bc4d64cdd1e40e.zip
Fix a couple problems pychecker found. There's probably a lot more commits
like this.
Diffstat (limited to 'text.py')
-rw-r--r--text.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/text.py b/text.py
index 6c396f56e..36e07e3cc 100644
--- a/text.py
+++ b/text.py
@@ -149,7 +149,7 @@ class ExceptionWindow:
self.buttons=[TEXT_OK_BUTTON]
- if floppy.hasFloppyDevice() == True or flags.debug:
+ if floppy.hasFloppyDevice() or flags.debug:
self.buttons.append(_("Save"))
if hasActiveNetDev() or flags.debug:
@@ -302,7 +302,7 @@ class InstallInterface:
from string import joinfields
list = traceback.format_exception(type, value, tb)
text = joinfields(list, "")
- win = self.exceptionWindow(text)
+ win = self.exceptionWindow(text, "/tmp/anacdump.txt")
win.run()
rc = win.getrc()
if rc == 1:
@@ -364,7 +364,7 @@ class InstallInterface:
txt = TextboxReflowed(65, ic.instkeydesc or
_("Please enter your %(instkey)s") %
- {instkey: keyname,})
+ {"instkey": keyname,})
g.add(txt, 0, 0, (0,0,0,1))