'Generate a list of objects to process.
:param container: the name of the container to process
If the given container is empty and older than reclaim_age this
processor will attempt to reap it.'

def _iter_objects(self, container):

    self.logger.debug('looking    for    objects    in    %s', container)
    found_obj = False
    try:
        for raw_obj in self.swift.iter_objects(MISPLACED_OBJECTS_ACCOUNT, container):
            found_obj = True
            (yield raw_obj)
    except UnexpectedResponse as err:
        self.logger.error('Error    listing    objects    in    container    %s    (%s)', container, err)
    if ((float(container) < (time.time() - self.reclaim_age)) and (not found_obj)):
        self.swift.delete_container(MISPLACED_OBJECTS_ACCOUNT, container, acceptable_statuses=(2, 404, 409, 412))
