Python Error:IndentationError: expected an indented block

jim-on-linux inq1ltd at verizon.net
Wed Nov 8 12:03:46 EST 2006


try this

  def DoCsubnet1 (action, subject, target,
                            args): 
       pass



jim-on-linux
http://www.inqvista.com




On Wednesday 08 November 2006 10:47, 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.
>
>  2) how can i overcome it? Can i use the
> keyword pass?and if how ccan i use it
>
>
>  Kind regards,
>
>  Antonios
>
>



More information about the Python-list mailing list