def _check_second_range(sec):
 if np.any((sec == 60.0)):
  warn(IllegalSecondWarning(sec, u'Treating as 0 sec, +1 min'))
 elif (sec is None):
  pass
 elif (np.any((sec < (-60.0))) or np.any((sec > 60.0))):
  raise IllegalSecondError(sec)

def _check_second_range ( sec ) : if np . any ( ( sec == 60.0 ) ) : warn ( IllegalSecondWarning ( sec , u'Treating as 0 sec, +1 min' ) ) elif ( sec is None ) : pass elif ( np . any ( ( sec < ( - 60.0 ) ) ) or np . any ( ( sec > 60.0 ) ) ) : raise IllegalSecondError ( sec )
checks that the given value is in the range [0 .