def find_lines(code, strs):
 linenos = find_lines_from_code(code, strs)
 for c in code.co_consts:
  if inspect.iscode(c):
   linenos.update(find_lines(c, strs))
 return linenos

def find_lines ( code , strs ) : linenos = find_lines_from_code ( code , strs ) for c in code . co_consts : if inspect . iscode ( c ) : linenos . update ( find_lines ( c , strs ) ) return linenos
return lineno dict for all code objects reachable from code .