sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #21815
[Question #237485]: split is not working
New question #237485 on Sikuli:
https://answers.launchpad.net/sikuli/+question/237485
I want to split my line and get the eCCM-U for mt,
i am using below code for it, please let me know if any issue with my code?
line="ModuleName : PBA: eCCM-U"
print line.split()
(head, mt) = line.split("(\w*):")
print mt
getting below error,
['ModuleName', ':', 'PBA:', 'eCCM-U']
[error] Stopped
[error] An error occurs at line 6
[error] Error message: Traceback (most recent call last):
File "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\sikuli-tmp2387095384227970453.py", line 6, in
(head, mt) = line.split("(\w*):")
ValueError: need more than 1 value to unpack
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.