MCPcopy Index your code
hub / github.com/python/cpython / clean_contents

Function clean_contents

Platforms/WASI/_build.py:405–413  ·  view source on GitHub ↗

Delete all files created by this script.

(context)

Source from the content-addressed store, hash-verified

403
404
405def clean_contents(context):
406 """Delete all files created by this script."""
407 if CROSS_BUILD_DIR.exists():
408 log("🧹", f"Deleting {CROSS_BUILD_DIR} ...")
409 shutil.rmtree(CROSS_BUILD_DIR)
410
411 if LOCAL_SETUP.exists():
412 if LOCAL_SETUP.read_bytes() == LOCAL_SETUP_MARKER:
413 log("🧹", f"Deleting generated {LOCAL_SETUP} ...")

Callers

nothing calls this directly

Calls 3

logFunction · 0.70
existsMethod · 0.45
read_bytesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…