def _build_units_list(units, reverse=False):
 return_units = []
 for unit in iter(units):
  return_units.append(_prepare_unit(unit))
 return return_units

def _build_units_list ( units , reverse = False ) : return_units = [ ] for unit in iter ( units ) : return_units . append ( _prepare_unit ( unit ) ) return return_units
given a list/queryset of units .