diff options
author | Daniel Abrahamsson <hamsson@gmail.com> | 2019-09-11 14:58:56 (GMT) |
---|---|---|
committer | T. Wouters <thomas@python.org> | 2019-09-11 14:58:56 (GMT) |
commit | 5209e586b7cac9a43b2c44349a26b1b0af06ead3 (patch) | |
tree | cafe1143250451d37a63d17261fb117308364e50 /Misc/NEWS.d/next/Library | |
parent | 3b58a70d9cf1c0f963adce9b07060116b2775687 (diff) | |
download | cpython-5209e586b7cac9a43b2c44349a26b1b0af06ead3.zip cpython-5209e586b7cac9a43b2c44349a26b1b0af06ead3.tar.gz cpython-5209e586b7cac9a43b2c44349a26b1b0af06ead3.tar.bz2 |
bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15330)
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
```
Diffstat (limited to 'Misc/NEWS.d/next/Library')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-08-19-10-31-41.bpo-37885.4Nc9sp.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-08-19-10-31-41.bpo-37885.4Nc9sp.rst b/Misc/NEWS.d/next/Library/2019-08-19-10-31-41.bpo-37885.4Nc9sp.rst new file mode 100644 index 0000000..055d029 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-08-19-10-31-41.bpo-37885.4Nc9sp.rst @@ -0,0 +1 @@ +venv: Don't generate unset variable warning on deactivate.
\ No newline at end of file |