Update a ``matches`` LicenseMatch sequence with start and end line given a `line_by_pos` {pos: line} mapping.
(matches, line_by_pos)
| 856 | |
| 857 | |
| 858 | def set_matched_lines(matches, line_by_pos): |
| 859 | """ |
| 860 | Update a ``matches`` LicenseMatch sequence with start and end line given a |
| 861 | `line_by_pos` {pos: line} mapping. |
| 862 | """ |
| 863 | # if there is no line_by_pos, do not bother: the lines will stay to zero. |
| 864 | if line_by_pos: |
| 865 | for match in matches: |
| 866 | match.set_lines(line_by_pos) |
| 867 | |
| 868 | |
| 869 | def merge_matches(matches, max_dist=None, trace=TRACE_MERGE): |
no test coverage detected