def for_each_line(self, region):
        view = self.view
        pos = region.begin()
        limit = region.end()
        if pos == limit:
            limit += 1
        while pos < limit:
            line = view.line(pos)
            yield line
            pos = line.end() + 1

    #
    # Returns true if all the text between a and b is blank.
    #
dataset/ETHPy150Open grundprinzip/sublemacspro/jove.py/CmdUtil.for_each_line/original