File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1+ Updates the documentation for ``os.environ['KEY'] `` when the variable does not exist - by :user: `jugmac00 `.
Original file line number Diff line number Diff line change @@ -1635,7 +1635,8 @@ If you specify a substitution string like this::
16351635
16361636 {env:KEY}
16371637
1638- then the value will be retrieved as ``os.environ['KEY'] `` and raise an Error if the environment variable does not exist.
1638+ then the value will be retrieved as ``os.environ['KEY'] `` and replaced with an empty string if the environment variable
1639+ does not exist.
16391640
16401641
16411642Environment variable substitutions with default values
@@ -1645,14 +1646,14 @@ If you specify a substitution string like this::
16451646
16461647 {env:KEY:DEFAULTVALUE}
16471648
1648- then the value will be retrieved as ``os.environ['KEY'] `` and replace with DEFAULTVALUE if the environment variable does
1649+ then the value will be retrieved as ``os.environ['KEY'] `` and replaced with DEFAULTVALUE if the environment variable does
16491650not exist.
16501651
16511652If you specify a substitution string like this::
16521653
16531654 {env:KEY:}
16541655
1655- then the value will be retrieved as ``os.environ['KEY'] `` and replace with an empty string if the environment variable
1656+ then the value will be retrieved as ``os.environ['KEY'] `` and replaced with an empty string if the environment variable
16561657does not exist.
16571658
16581659Substitutions can also be nested. In that case they are expanded starting from the innermost expression::
You can’t perform that action at this time.
0 commit comments