Re: [BangPypers] IndentationError: expected an indented block

2009-03-11 Thread Parthan SR
Sandeep HS wrote: �Every time i execute that python program , I am getting error as �File "ind.py", line 280 �dom = parseString(xmldata) Because the above said statement in line number 280 falls within a function block and hence need to be indented. Can you please set your editor to indent b

Re: [BangPypers] IndentationError: expected an indented block

2009-03-11 Thread Pradeep Gowda
(resending reply to the list.. ) Python uses indentation for blocks your code has uneven indentation(1 space?) and no indentation in some places. You have to indent code correctly. Use FOUR spaces for indentation. eg: if len(args) == 0: print "Fatal: no indication type provided." sys.exit(1)

Re: [BangPypers] IndentationError: expected an indented block

2009-03-11 Thread Senthil Kumaran
On Wed, Mar 11, 2009 at 7:49 PM, Sandeep HS wrote: > IndentationError: expected an indented block All your classes are indented wrong. As the Error message clearly says it IS an INDENTATION Issue, that is, you have not structured the code properly that parser can understand. The Class should be

[BangPypers] IndentationError: expected an indented block

2009-03-11 Thread Sandeep HS
Hello, This is Sandeep H S working in Green Turtles Technologies, B'lore. I am trying to execute a python program but unable to do so . Every time i execute that python program , I am getting error as File "ind.py", line 280 dom = parseString(xmldata) ^ IndentationError: expected an