MCPcopy Index your code
hub / github.com/RustPython/RustPython / iter_patches

Function iter_patches

scripts/update_lib/patch_spec.py:224–227  ·  view source on GitHub ↗
(contents: str)

Source from the content-addressed store, hash-verified

222
223
224def iter_patches(contents: str) -> "Iterator[PatchEntry]":
225 lines = contents.splitlines()
226 tree = ast.parse(contents)
227 yield from PatchEntry.iter_patch_entries(tree, lines)
228
229
230def build_patch_dict(it: "Iterator[PatchEntry]") -> Patches:

Callers 1

extract_patchesFunction · 0.85

Calls 3

iter_patch_entriesMethod · 0.80
splitlinesMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected