def check_series_params_or_404(group, start, end, format):
 if ((group not in SERIES_GROUPS) or (format not in SERIES_FORMATS)):
  raise http.Http404
 return get_daterange_or_404(start, end)

def check_series_params_or_404 ( group , start , end , format ) : if ( ( group not in SERIES_GROUPS ) or ( format not in SERIES_FORMATS ) ) : raise http . Http404 return get_daterange_or_404 ( start , end )
check common series parameters .