[Tutor] "expected an indented block" (see attached)

Alex Hall mehgcap at gmail.com
Thu Jul 22 15:30:14 CEST 2010


Hi all,
Attached is a file. When I run the program it is part of, I get an
error that says:
line 62: IndentationError: expected an indented block.

I can see nothing wrong with the indentation, though. This is part of
my Battleship game, defining all the different ships and aircraft the
user can have, as well as the special weapons methods for each ship.
If anyone can spot the problem, it would be great. I know I only
indent one space, instead of the normal four, but I use a screen
reader and it is a lot easier and faster to do it this way. If a
version of Python based on braces instead of indents were released, my
world would be so much better!

-- 
Have a great day,
Alex (msg sent from GMail website)
mehgcap at gmail.com; http://www.facebook.com/mehgcap
-------------- next part --------------
A non-text attachment was scrubbed...
Name: craft.py
Type: application/octet-stream
Size: 5061 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20100722/043fe8e8/attachment.obj>


More information about the Tutor mailing list