def block_range(self, lineno):
last = None<EOL>for exhandler in self.handlers:<EOL><INDENT>if exhandler.type and lineno == exhandler.type.fromlineno:<EOL><INDENT>return lineno, lineno<EOL><DEDENT>if exhandler.body[<NUM_LIT:0>].fromlineno <= lineno <= exhandler.body[-<NUM_LIT:1>].tolineno:<EOL><INDENT>return lineno, exhandler.body[-<NUM_LIT:1>].tolineno<EOL><DEDENT>if last is None:<EOL><INDENT>last = exhandler.body[<NUM_LIT:0>].fromlineno - <NUM_LIT:1><EOL><DEDENT><DEDENT>return self._elsed_block_range(lineno, self.orelse, last)<EOL>
Get a range from the given line number to where this node ends.

        :param lineno: The line number to start the range at.
        :type lineno: int

        :returns: The range of line numbers that this node belongs to,
            starting at the given line number.
        :rtype: tuple(int, int)