#NEWLINE# def get_order( self , aBuf ) : #NEWLINE# #INDENT# ( first_char , second_char ) = ( wrap_ord ( aBuf [ 0 ] ) , wrap_ord ( aBuf [ 1 ] ) ) #NEWLINE# if ( ( first_char >= 129 ) and ( first_char <= 159 ) ) : #NEWLINE# #INDENT# order = ( 188 * ( first_char - 129 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( first_char >= 224 ) and ( first_char <= 239 ) ) : #NEWLINE# #INDENT# order = ( 188 * ( ( first_char - 224 ) + 31 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( - 1 ) #NEWLINE# #UNINDENT# #UNINDENT# order = ( ( order + second_char ) - 64 ) #NEWLINE# if ( second_char > 127 ) : #NEWLINE# #INDENT# order = ( - 1 ) #NEWLINE# #UNINDENT# return order