summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-10-11 21:07:11 +0000
committerChris Lumens <clumens@redhat.com>2005-10-11 21:07:11 +0000
commit8c6d2e069af6f01c0f9a62fbf01d3f68e8d3a6ce (patch)
tree8ebaa894f1fde96f66b733be971e611187a14703 /text.py
parent460133d8c2c2d4b02e166a304570d47c24bed67c (diff)
downloadanaconda-8c6d2e069af6f01c0f9a62fbf01d3f68e8d3a6ce.tar.gz
anaconda-8c6d2e069af6f01c0f9a62fbf01d3f68e8d3a6ce.tar.xz
anaconda-8c6d2e069af6f01c0f9a62fbf01d3f68e8d3a6ce.zip
Remove unused floppy device code. Use hasFloppyDevice instead of
duplicating device counting code.
Diffstat (limited to 'text.py')
-rw-r--r--text.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/text.py b/text.py
index bbf613bee..3ef0b4599 100644
--- a/text.py
+++ b/text.py
@@ -28,6 +28,7 @@ from language import expandLangs
from flags import flags
from constants_text import *
from constants import *
+import floppy
from rhpl.translate import _, cat, N_
@@ -284,17 +285,8 @@ class InstallInterface:
return 0
def exceptionWindow(self, shortText, longTextFile):
- try:
- floppyDevices = 0
- for dev in kudzu.probe(kudzu.CLASS_FLOPPY, kudzu.BUS_UNSPEC,
- kudzu.PROBE_ALL):
- if not dev.detached:
- floppyDevices = floppyDevices + 1
- except:
- floppyDevices = 0
-
ugh = "%s\n\n" % (exceptionText,)
- if floppyDevices > 0 or DEBUG:
+ if floppy.hasFloppyDevice() == True or DEBUG:
buttons=[TEXT_OK_BUTTON, _("Save"), _("Debug")]
else:
buttons=[TEXT_OK_BUTTON, _("Debug")]