#NEWLINE# def generate_executable_lines_for_code( code ) : #NEWLINE# #INDENT# l = code . co_firstlineno #NEWLINE# ( yield l ) #NEWLINE# if PY3 : #NEWLINE# #INDENT# for c in code . co_lnotab [ 1 : : 2 ] : #NEWLINE# #INDENT# l += c #NEWLINE# ( yield l ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# for c in code . co_lnotab [ 1 : : 2 ] : #NEWLINE# #INDENT# l += ord ( c ) #NEWLINE# ( yield l )