summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-01-28 07:01:26 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-01-28 07:01:26 (GMT)
commit547f66f599482d2c149013262d55cc98d72c592f (patch)
treee49de14d96780d54afd0bcf79af68feefb803f11 /Lib
parenta370a4271e672576e54fb5fe3fc1d67139b69a0a (diff)
downloadcpython-547f66f599482d2c149013262d55cc98d72c592f.zip
cpython-547f66f599482d2c149013262d55cc98d72c592f.tar.gz
cpython-547f66f599482d2c149013262d55cc98d72c592f.tar.bz2
Issue #26034: Sync documentation of --clear with its behavior
Most of the docs has already been updated in c3c188a0325a.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/venv/__init__.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py
index 3d606ef..f1d0649 100644
--- a/Lib/venv/__init__.py
+++ b/Lib/venv/__init__.py
@@ -19,9 +19,8 @@ optional arguments:
Give the virtual environment access to the system
site-packages dir.
--symlinks Attempt to symlink rather than copy.
- --clear Delete the environment directory if it already exists.
- If not specified and the directory exists, an error is
- raised.
+ --clear Delete the contents of the environment directory if it
+ already exists, before environment creation.
--upgrade Upgrade the environment directory to use this version
of Python, assuming Python has been upgraded in-place.
--without-pip Skips installing or upgrading pip in the virtual
@@ -52,9 +51,8 @@ class EnvBuilder:
:param system_site_packages: If True, the system (global) site-packages
dir is available to created environments.
- :param clear: If True and the target directory exists, it is deleted.
- Otherwise, if the target directory exists, an error is
- raised.
+ :param clear: Delete the contents of the environment directory if it
+ already exists, before environment creation.
:param symlinks: If True, attempt to symlink rather than copy files into
virtual environment.
:param upgrade: If True, upgrade an existing virtual environment.
@@ -361,9 +359,8 @@ def create(env_dir, system_site_packages=False, clear=False,
:param env_dir: The target directory to create an environment in.
:param system_site_packages: If True, the system (global) site-packages
dir is available to the environment.
- :param clear: If True and the target directory exists, it is deleted.
- Otherwise, if the target directory exists, an error is
- raised.
+ :param clear: Delete the contents of the environment directory if it
+ already exists, before environment creation.
:param symlinks: If True, attempt to symlink rather than copy files into
virtual environment.
:param with_pip: If True, ensure pip is installed in the virtual