@staticmethod
def _findlinestarts(code):
    """Find the offsets in a byte code which are start of lines in the source
        Generate pairs offset,lineno as described in Python/compile.c
        This is a modified version of dis.findlinestarts, which allows multiplelinestarts
        with the same line number"""
    lineno = code.co_firstlineno
    addr = 0
    for byte_incr, line_incr in zip(code.co_lnotab[0::2], code.co_lnotab[1::2]
        ):
        if byte_incr:
            yield addr, lineno
            addr += byte_incr
        lineno += line_incr
    yield addr, lineno
