def generate_all_but_last_sub_locations(self):
for i in range(self.nbr_of_sub_locations()-<NUM_LIT:1>):<EOL><INDENT>yield self._locations_list[i]<EOL><DEDENT>
Generate all but last sub locations one by one.

Yields:
    sublocation (str): one of the sub locations.