Return dict where keys are lines in the line number table.
(code, strs)
| 329 | return n_hits, n_lines |
| 330 | |
| 331 | def _find_lines_from_code(code, strs): |
| 332 | """Return dict where keys are lines in the line number table.""" |
| 333 | linenos = {} |
| 334 | |
| 335 | for _, lineno in dis.findlinestarts(code): |
| 336 | if lineno not in strs: |
| 337 | linenos[lineno] = 1 |
| 338 | |
| 339 | return linenos |
| 340 | |
| 341 | def _find_lines(code, strs): |
| 342 | """Return lineno dict for all code objects reachable from code.""" |
no outgoing calls
no test coverage detected
searching dependent graphs…