error? inconsistent dedent

tim_one at email.msn.com tim_one at email.msn.com
Fri Jun 18 17:13:34 EDT 1999


In article <376A6796.814CBA24 at phoenix-edv.netzservice.de>,
  Holger Jannsen <holger at phoenix-edv.netzservice.de> wrote:
> Couldn't understand following error:
>
> C:\myPython>installation16.py -x -d test
> inconsistent dedent
>   File "C:\myPython\installation16.py", line 619
>     opts, args = getopt.getopt(sys.argv[1:], 'x')
>                                         ^
> SyntaxError: invalid token
>
> What does 'inconsistent dedent' mean?
> Why does that error occur?

Because you're running with the -x switch, the line number in the
traceback is off by 1, and it's not showing the correct line either.
This is fixed in the current development version of Python, but didn't
make it in time for the 1.5.2 release.  Go into your source file and
look at the lines *next* to the line it's showing you here.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




More information about the Python-list mailing list