Help need

sr_sutar sr_sutar at yahoo.com
Fri Nov 25 15:31:02 CET 2005


HI group,

During doing some codeing with python i got the inline error,


def my_word( offset ):
    try:
    j = ord(t[offset]) + 256*ord(t[offset+1])# + 65536*ord(t
[offset+2]) + 16777216*ord(t[offset+3])
        #return j
        except IndexError:
#               print "Exception"
    return j
def my_bpp( mode ):
        if mode & 0xF8000000:
                return 1 << ( ( (mode >> 27) & 31 ) - 1 )
        if mode==20 or mode==27:
                return 4
        return 0



File "../../../source/ant//tools/scripts/python/sprites.py", line 31
    j = ord(t[offset]) + 256*ord(t[offset+1])# + 65536*ord(t
[offset+2]) + 16777216*ord(t[offset+3])
    ^
IndentationError: expected an indented block
make[2]: *** [swapped.out] Error 1
make[1]: *** [ant_final_target] Error 2
make: *** [rest] Error 2


Any Help?

With Best Regards,
Soumya






More information about the Python-list mailing list