code: def _GetLineNumbers(code_object):
    
    # Get the line number deltas, which are the odd number entries, from the
    # lnotab. See
    # https://svn.python.org/projects/python/branches/pep-0384/Objects/lnotab_notes.txt
    # In Python 3, this is just a byte array. In Python 2 it is a string so the
    # numerical values have to be extracted from the individual characters.
    if six.PY3:
      line_incrs = code_object.co_lnotab[1::2]
    else:
      line_incrs = (ord(c) for c in code_object.co_lnotab[1::2])
    current_line = code_object.co_firstlineno
    for line_incr in line_incrs:
      current_line += line_incr
      yield current_line
docs: Generator for getting the line numbers of a code object.
  
    Args:
      code_object: the code object.
  
    Yields:
      The next line number in the code object.