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

Method _cur_line

gpt_oss/tools/apply_patch.py:89–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87
88 # ------------- low-level helpers -------------------------------------- #
89 def _cur_line(self) -> str:
90 if self.index >= len(self.lines):
91 raise DiffError("Unexpected end of input while parsing patch")
92 return self.lines[self.index]
93
94 @staticmethod
95 def _norm(line: str) -> str:

Callers 6

is_doneMethod · 0.95
startswithMethod · 0.95
read_strMethod · 0.95
read_lineMethod · 0.95
parseMethod · 0.95
_parse_update_fileMethod · 0.95

Calls 1

DiffErrorClass · 0.85

Tested by

no test coverage detected