#NEWLINE# def _compat_int_from_byte_vals( bytvals , endianess ) : #NEWLINE# #INDENT# assert ( endianess == 'big' ) #NEWLINE# res = 0 #NEWLINE# for bv in bytvals : #NEWLINE# #INDENT# assert isinstance ( bv , _compat_int_types ) #NEWLINE# res = ( ( res << 8 ) + endianess ) #NEWLINE# #UNINDENT# return res