MCPcopy
hub / github.com/pyodide/pyodide / show_diff

Function show_diff

tools/bump_version.py:291–298  ·  view source on GitHub ↗
(before: str, after: str, file: pathlib.Path)

Source from the content-addressed store, hash-verified

289
290
291def show_diff(before: str, after: str, file: pathlib.Path):
292 diffs = list(
293 difflib.unified_diff(
294 before.splitlines(keepends=True), after.splitlines(keepends=True), n=0
295 )
296 )[2:]
297 print(f"[*] Diff of '{file}':\n")
298 print("".join(diffs))
299
300
301def parse_args():

Callers 2

update_changelogFunction · 0.85
generate_updated_contentFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…