MCPcopy Index your code
hub / github.com/openai/openai-agents-python / _normalize_diff_lines

Function _normalize_diff_lines

src/agents/apply_diff.py:68–72  ·  view source on GitHub ↗
(diff: str)

Source from the content-addressed store, hash-verified

66
67
68def _normalize_diff_lines(diff: str) -> list[str]:
69 lines = [line.rstrip("\r") for line in re.split(r"\r?\n", diff)]
70 if lines and lines[-1] == "":
71 lines.pop()
72 return lines
73
74
75def _detect_newline_from_text(text: str) -> str:

Callers 2

apply_diffFunction · 0.85

Calls

no outgoing calls