Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add docstring
  • Loading branch information
vstinner committed Jun 17, 2024
commit f79fd793a3960dda2bc446d7df272387ebcfae1e
3 changes: 3 additions & 0 deletions Lib/os.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,9 @@ def decode(value):

if _exists("_get_user_default_environ"):
def get_user_default_environ():
"""
Get the default environment of the current process user as a dictionary.
"""
env = {}
env_str = _get_user_default_environ()
for entry in env_str.split('\0'):
Expand Down