Gentoo Archives: gentoo-commits

From: Wiktor W Brodlo <wiktor@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/anaconda:master commit in: iw/
Date: Mon, 04 Jul 2011 14:53:44
Message-Id: c62c274c46c80045d5d937808b14ae6a5c5047df.wiktor@gentoo
1 commit: c62c274c46c80045d5d937808b14ae6a5c5047df
2 Author: wiktor w brodlo <wiktor <AT> brodlo <DOT> net>
3 AuthorDate: Mon Jul 4 14:53:16 2011 +0000
4 Commit: Wiktor W Brodlo <wiktor <AT> brodlo <DOT> net>
5 CommitDate: Mon Jul 4 14:53:16 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/anaconda.git;a=commit;h=c62c274c
7
8 w/use_gui.py: Use partition instead of split
9
10 ---
11 iw/use_gui.py | 6 +++---
12 1 files changed, 3 insertions(+), 3 deletions(-)
13
14 diff --git a/iw/use_gui.py b/iw/use_gui.py
15 index 2ed1d0b..a675b60 100644
16 --- a/iw/use_gui.py
17 +++ b/iw/use_gui.py
18 @@ -64,9 +64,9 @@ class UseWindow(InstallWindow):
19 if comment:
20 # Truncate the line where the comment starts
21 line = line[:comment.start()]
22 - s = line.split(" - ")
23 - if s[0] and s[1]:
24 - use[s[0]] = s[1]
25 + s = line.partition(" - ")
26 + if s[0] and s[2]:
27 + use[s[0]] = s[2]
28 use_list.append(s[0])
29
30 table = self.xml.get_widget("use_table")