Discussion:
[Bitpim-devel] Re: [bitpim-cvs-checkins] bitpim com_samsung.py,1.21,1.22 com_samsungscha650.py,1.17,1.18
Roger Binns
2004-11-18 16:24:06 UTC
Permalink
+from string import split,atoi,strip,join
You don't need any of those! For example this line:

g.append(strip(split(split(s[0],": ")[1],",")[1], '"'))

Should be:

g.append(s[0].split(": ")[1].split(",")[1].split('"').strip())

But the original line is actually broken as you can't run
strip on a list.

Roger

Loading...