[Tutor] python error: IndentationError: expected an indented block

Kent Johnson kent37 at tds.net
Wed Nov 8 16:59:23 CET 2006


Antonios Katsikadamos wrote:
> hi all. I try to run an old python code and i get the following message
> 
> File "/home/antonis/db/access.py", line 119
>     def DoCsubnet1 (action, subject, target, args):             # DoC 
> servers net
>       ^
> IndentationError: expected an indented block
> 
> 1) and I don't know what causes it. I would be grate full if you could 
> give me a tip.

Please show the code at line 119. It is expecting the line you show to 
be indented more than it is.
> 
> 2) how can i overcome it? Can i use the keyword pass?
> 
> 
> Kind regards,
> 
> Antonios
> 
> ------------------------------------------------------------------------
> Want to start your own business? Learn how on Yahoo! Small Business. 
> <http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/r-index>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor




More information about the Tutor mailing list