def parse_selection(self, selection, name=None):
if type(selection) is tuple:<EOL><INDENT>process = self._process_range<EOL><DEDENT>elif selection.startswith('<STR_LIT:@>'):<EOL><INDENT>process = self._process_command<EOL>selection = selection[<NUM_LIT:1>:]<EOL><DEDENT>else:<EOL><INDENT>process = self._process_residue<EOL><DEDENT>return process(selection, name)<EOL>
Retuns (groupname, filename) with index group.