#NEWLINE# def __init__( self , conditions ) : #NEWLINE# #INDENT# if isinstance ( c , ConditionElement ) : #NEWLINE# #INDENT# self . conditions = [ conditions ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( conditions , list ) : #NEWLINE# #INDENT# for c in conditions : #NEWLINE# #INDENT# if ( not isinstance ( c , ConditionElement ) ) : #NEWLINE# #INDENT# raise ValueError ( ( 'ConditionElement is type %s' % ( type ( c ) , ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . conditions = conditions #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise TypeError