@deprecated(u'2.1')
def onetrue(seq):
 if (not len(seq)):
  return False
 for val in seq:
  if val:
   return True
 return False

@ deprecated ( u'2.1' ) def onetrue ( seq ) : if ( not len ( seq ) ) : return False for val in seq : if val : return True return False
return *true* if one element of *seq* is *true* .