[issue37885] venv: Don't produce unbound variable warning on deactivate

2019-08-19 Thread Daniel Abrahamsson
Change by Daniel Abrahamsson : -- keywords: +patch pull_requests: +15048 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15330 ___ Python tracker <https://bugs.python.org/issu

[issue37885] venv: Don't produce unbound variable warning on deactivate

2019-08-19 Thread Daniel Abrahamsson
New submission from Daniel Abrahamsson : Running deactivate from a bash shell configured to treat undefined variables as errors (`set -u`) produces a warning: ``` $ python3 -m venv test $ source test/bin/activate (test) $ deactivate -bash: $1: unbound variable ``` -- components