sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #02686
Re: [Question #156506]: Getting Indentation eror?
Question #156506 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/156506
Status: Open => Answered
RaiMan proposed the following answer:
This usually happens, if mix up indentations using blanks and tabs.
This is one weird thing with indentation in Python: depending on your
script editor, the two types of indentation might look the same, but are
handled different by the Python interpreter.
General recommendation: Only use the tab key, to indent one level and
shift-tab to dedent one level (this is supported by the the IDE) and
works for multiple selected lines too.
To fix your problem:
- select all lines (ctrl-a)
- use shift-tab until all lines are left justified again
- indent again as needed using tab (you might select multiple lines to indent them)
The next release of Sikuli X will contain some more help and automatics
for correct indentation.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.