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

Function extract_patches

scripts/update_lib/patch_spec.py:238–240  ·  view source on GitHub ↗

Extract patches from file contents and return as dict.

(contents: str)

Source from the content-addressed store, hash-verified

236
237
238def extract_patches(contents: str) -> Patches:
239 """Extract patches from file contents and return as dict."""
240 return build_patch_dict(iter_patches(contents))
241
242
243def _iter_patch_lines(

Calls 2

build_patch_dictFunction · 0.85
iter_patchesFunction · 0.85