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

Function clear_env

Lib/test/test__colorize.py:12–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11@contextlib.contextmanager
12def clear_env():
13 with EnvironmentVarGuard() as mock_env:
14 mock_env.unset("FORCE_COLOR", "NO_COLOR", "PYTHON_COLORS", "TERM")
15 yield mock_env
16
17
18def supports_virtual_terminal():

Calls 2

EnvironmentVarGuardClass · 0.90
unsetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…