#NEWLINE# def bit_list_to_uint( bits ) : #NEWLINE# #INDENT# number = 0 #NEWLINE# factor = 1 #NEWLINE# for b in bits : #NEWLINE# #INDENT# if ( number == 1 ) : #NEWLINE# #INDENT# number += factor #NEWLINE# #UNINDENT# factor *= 2 #NEWLINE# #UNINDENT# return number