summaryrefslogtreecommitdiffstats
path: root/comps.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-06-23 03:24:08 +0000
committerMatt Wilson <msw@redhat.com>2001-06-23 03:24:08 +0000
commit48153651a7519d0654b8c9685907a203464bc684 (patch)
tree76ad6e78b0c26fb668a7cd27e972c46ce0f91ab4 /comps.py
parent7a3c395db8ac3e0db05acabd610758a555195556 (diff)
downloadanaconda-48153651a7519d0654b8c9685907a203464bc684.tar.gz
anaconda-48153651a7519d0654b8c9685907a203464bc684.tar.xz
anaconda-48153651a7519d0654b8c9685907a203464bc684.zip
more pychecker fixups
Diffstat (limited to 'comps.py')
-rw-r--r--comps.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/comps.py b/comps.py
index 909273aca..477ff118f 100644
--- a/comps.py
+++ b/comps.py
@@ -19,11 +19,9 @@ import os
from string import *
import types
import urllib
-from translate import _
-from translate import N_
+from translate import _, N_
from log import log
import time
-import string
ExcludePackages = { 'XFree86-3DLabs' : None, 'XFree86-8514' : None,
'XFree86-AGX' : None, 'XFree86-I128' : None,
@@ -669,7 +667,7 @@ class ComponentSet:
# install is ok.
conflicts = 1
if reqversion:
- fields = string.split(reqversion, '-')
+ fields = split(reqversion, '-')
if (len (fields) == 2):
needed = ("", fields [0], fields [1])
else:
@@ -726,7 +724,7 @@ class ComponentSet:
# nick is used to generate the lilo name
for (ktag, nick) in [ ('kernel-enterprise', 'nick'),
('kernel-smp', 'smp') ]:
- tag = string.split(ktag, '-')[1]
+ tag = split(ktag, '-')[1]
if (self.packages.has_key(ktag) and
self.packages[ktag].selected):
version = (self.packages[ktag][rpm.RPMTAG_VERSION] + "-" +