commit | 63eefc35674ec12ab4d00af4feaf21de4cb1c91c | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Wed Sep 11 08:55:57 2019 -0700 |
committer | T. Wouters <thomas@python.org> | Wed Sep 11 08:55:57 2019 -0700 |
tree | 2f57c6b364d99ce885e880b57bd5701217e4a4a6 | |
parent | 893653357cc83d49049debfeb9074a4ce99cd478 [diff] |
bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15973) Before, running deactivate from a bash shell configured to treat undefined variables as errors (`set -u`) would produce a warning: ``` $ python3 -m venv test $ source test/bin/activate (test) $ deactivate -bash: $1: unbound variable ``` (cherry picked from commit 5209e586b7cac9a43b2c44349a26b1b0af06ead3) Co-authored-by: Daniel Abrahamsson <hamsson@gmail.com>