<s> class TypeUtil : <EOL> @ classmethod <EOL> def is_iterable ( cls , obj ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> iter ( obj ) <EOL> return True <EOL> except TypeError : <EOL> return False <EOL> @ classmethod <EOL> def convert_to_list ( cls , obj ) : <EOL> """<STR_LIT>""" <EOL> if not isinstance ( obj , list ) and cls . is_iterable ( obj ) : <EOL> obj = list ( obj ) <EOL> return obj </s>
