Strip CR so comparisons work for both LF and CRLF input.
(line: str)
| 52 | # Helper functions (Adapted from apply_patch.py) |
| 53 | # --------------------------------------------------------------------------- # |
| 54 | def _norm(line: str) -> str: |
| 55 | """Strip CR so comparisons work for both LF and CRLF input.""" |
| 56 | return line.rstrip("\r") |
| 57 | |
| 58 | |
| 59 | def find_context_core(lines: List[str], context: List[str], start: int) -> Tuple[int, int]: |
no outgoing calls
no test coverage detected