Mercurial > cpython-lru_cache-weakref
diff Lib/subprocess.py @ 70921:b5963fceddad 3.2
Close #12383: Fix subprocess module with env={}: don't copy the environment
variables, start with an empty environment.
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Tue, 21 Jun 2011 17:18:38 +0200 |
| parents | 0f2714e49583 |
| children | dcfacc2d93b4 10ecf8576eb2 |
line wrap: on
line diff
--- a/Lib/subprocess.py Mon Jun 20 22:09:13 2011 -0500 +++ b/Lib/subprocess.py Tue Jun 21 17:18:38 2011 +0200 @@ -1169,7 +1169,7 @@ # potential deadlocks, thus we do all this here. # and pass it to fork_exec() - if env: + if env is not None: env_list = [os.fsencode(k) + b'=' + os.fsencode(v) for k, v in env.items()] else:
