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

Function make_clean_env

Lib/test/support/__init__.py:3089–3096  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3087
3088
3089def make_clean_env() -> dict[str, str]:
3090 clean_env = os.environ.copy()
3091 for k in clean_env.copy():
3092 if k.startswith("PYTHON"):
3093 clean_env.pop(k)
3094 clean_env.pop("FORCE_COLOR", None)
3095 clean_env.pop("NO_COLOR", None)
3096 return clean_env
3097
3098
3099WINDOWS_STATUS = {

Callers 2

setUpMethod · 0.90

Calls 3

copyMethod · 0.45
startswithMethod · 0.45
popMethod · 0.45

Tested by 2

setUpMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…