#NEWLINE# def endianify( self , value ) : #NEWLINE# #INDENT# value = ( '%08x' % value ) #NEWLINE# charify = ( lambda x : chr ( int ( x , 16 ) ) ) #NEWLINE# return ( ( ( charify ( value [ 6 : 8 ] ) + charify ( value [ 4 : 6 ] ) ) + charify ( value [ 2 : 4 ] ) ) + charify ( value [ 0 : 2 ] ) )