

def handle_argument(self, bit):
    '\n        Handle the current argument.\n        '
    if (self.current_argument is None):
        try:
            self.current_argument = self.arguments.pop(0)
        except IndexError:
            raise TooManyArguments(self.tagname, self.todo)
    handled = self.current_argument.parse(self.parser, bit, self.tagname, self.kwargs)
    while (not handled):
        try:
            self.current_argument = self.arguments.pop(0)
        except IndexError:
            if self.options.breakpoints:
                raise BreakpointExpected(self.tagname, self.options.breakpoints, bit)
            elif self.options.next_breakpoint:
                raise BreakpointExpected(self.tagname, [self.options.next_breakpoint], bit)
            else:
                raise TooManyArguments(self.tagname, self.todo)
        handled = self.current_argument.parse(self.parser, bit, self.tagname, self.kwargs)

dataset/ETHPy150Open ojii/django-classy-tags/classytags/parser.py Parser.handle_argument/original