indentation error

Tim Roberts timr at probo.com
Sat Mar 6 19:49:33 EST 2010


asit <lipun4u at gmail.com> wrote:
>
>According to me, indentation is ok. but the python interpreter gives
>an indentation error
>
>[asit ~/py] $ python search.py
>  File "search.py", line 7
>    findResults = string.split(commandOutput, "\n")
>                                                  ^
>IndentationError: unindent does not match any outer indentation level

The most likely cause is mixing spaces with tabs.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list