MCPcopy
hub / github.com/Aider-AI/aider / _norm

Function _norm

aider/coders/patch_coder.py:54–56  ·  view source on GitHub ↗

Strip CR so comparisons work for both LF and CRLF input.

(line: str)

Source from the content-addressed store, hash-verified

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

Callers 7

peek_next_sectionFunction · 0.85
identify_files_neededFunction · 0.85
get_editsMethod · 0.85
_parse_patch_textMethod · 0.85
_apply_updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected