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

Function reload_environ

Lib/os.py:823–833  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

821
822if _exists("_create_environ"):
823 def reload_environ():
824 data = _create_environ()
825 if name == 'nt':
826 encodekey = environ.encodekey
827 data = {encodekey(key): value
828 for key, value in data.items()}
829
830 # modify in-place to keep os.environb in sync
831 env_data = environ._data
832 env_data.clear()
833 env_data.update(data)
834
835 __all__.append("reload_environ")
836

Callers

nothing calls this directly

Calls 4

encodekeyFunction · 0.85
itemsMethod · 0.45
clearMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…