utils.py
This file
The walk stopped after 200 commits: lines older than 60865f2 point at it.
Run 3.11 CI on all platforms (#6155)Nate Prewittbefore adoption60865f2
lines 1–17why, one step back1import contextlib2import os345@contextlib.contextmanager6def override_environ(**kwargs):7 save_env = dict(os.environ)8 for key, value in kwargs.items():9 if value is None:10 del os.environ[key]11 else:12 os.environ[key] = value13 try:14 yield15 finally:16 os.environ.clear()17 os.environ.update(save_env)