MCPcopy
hub / github.com/openai/gpt-oss / _norm

Method _norm

gpt_oss/tools/apply_patch.py:95–97  ·  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

93
94 @staticmethod
95 def _norm(line: str) -> str:
96 """Strip CR so comparisons work for both LF and CRLF input."""
97 return line.rstrip("\r")
98
99 # ------------- scanning convenience ----------------------------------- #
100 def is_done(self, prefixes: Optional[Tuple[str, ...]] = None) -> bool:

Callers 5

is_doneMethod · 0.95
startswithMethod · 0.95
read_strMethod · 0.95
_parse_update_fileMethod · 0.95
text_to_patchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected