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

Function clean_environment

Lib/test/test_gdb/util.py:24–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def clean_environment():
25 # Remove PYTHON* environment variables such as PYTHONHOME
26 return {name: value for name, value in os.environ.items()
27 if not name.startswith('PYTHON')}
28
29
30# Temporary value until it's initialized by get_gdb_version() below

Callers 1

run_gdbFunction · 0.85

Calls 2

itemsMethod · 0.45
startswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…