summaryrefslogtreecommitdiffstats
path: root/comps.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-10-30 19:19:21 +0000
committerMatt Wilson <msw@redhat.com>2001-10-30 19:19:21 +0000
commitfd95f5f5980b8491d212535db79d4375a786d9b0 (patch)
treecf2c9088aba726a8eb070ca50e18a496227461ee /comps.py
parent886550262ce7bd5f454865add63f97ad90d9f4f6 (diff)
downloadanaconda-fd95f5f5980b8491d212535db79d4375a786d9b0.tar.gz
anaconda-fd95f5f5980b8491d212535db79d4375a786d9b0.tar.xz
anaconda-fd95f5f5980b8491d212535db79d4375a786d9b0.zip
use startswith
Diffstat (limited to 'comps.py')
-rw-r--r--comps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/comps.py b/comps.py
index 13f1562f4..7ee3ab60c 100644
--- a/comps.py
+++ b/comps.py
@@ -519,7 +519,7 @@ class ComponentSet:
if (comp == None):
(default, l) = split(l, None, 1)
hidden = 0
- if (l[0:6] == "--hide"):
+ if (l.startswith('--hide')):
hidden = 1
(foo, l) = split(l, None, 1)
(l, trash) = split(l, '{', 1)