Make sure we quote the prompt option to the virtualenv_mod.

This commit is contained in:
Pedro Algarvio 2013-07-14 12:59:04 +01:00
parent d8536c9f87
commit 90df84fb27

View File

@ -176,7 +176,7 @@ def create(path,
else: else:
cmd.append('--never-download') cmd.append('--never-download')
if prompt is not None and prompt.strip() != '': if prompt is not None and prompt.strip() != '':
cmd.append('--prompt={0}'.format(prompt)) cmd.append('--prompt={0!r}'.format(prompt))
else: else:
# venv module from the Python >= 3.3 standard library # venv module from the Python >= 3.3 standard library