def get_trigger(trigger):
 if callable(trigger):
  return trigger
 elif (trigger is None):
  return _never_fire_trigger
 else:
  return interval.IntervalTrigger(*trigger)

def get_trigger ( trigger ) : if callable ( trigger ) : return trigger elif ( trigger is None ) : return _never_fire_trigger else : return interval . IntervalTrigger ( * trigger )
gets a trigger object .