]> granicus.if.org Git - python/commitdiff
Correct venv doc (fix #32540) (#5736)
authorTROUVERIE Joachim <joachim.trouverie@linoame.fr>
Sun, 18 Feb 2018 16:52:36 +0000 (17:52 +0100)
committerJason R. Coombs <jaraco@jaraco.com>
Sun, 18 Feb 2018 16:52:36 +0000 (11:52 -0500)
Doc/using/venv-create.inc

index 4292592ba7a25b82ef6182b35b52d6f750323324..4c7795ad801964fe945f58771efb36763d67ec3c 100644 (file)
@@ -9,7 +9,8 @@ with a ``home`` key pointing to the Python installation from which the command
 was run.  It also creates a ``bin`` (or ``Scripts`` on Windows) subdirectory
 containing a copy of the ``python`` binary (or binaries, in the case of
 Windows).  It also creates an (initially empty) ``lib/pythonX.Y/site-packages``
-subdirectory (on Windows, this is ``Lib\site-packages``).
+subdirectory (on Windows, this is ``Lib\site-packages``). If an existing
+directory is specified, it will be re-used.
 
 .. deprecated:: 3.6
    ``pyvenv`` was the recommended tool for creating virtual environments for
@@ -71,9 +72,7 @@ The command, if run with ``-h``, will show the available options::
 
 .. versionchanged:: 3.4
    In earlier versions, if the target directory already existed, an error was
-   raised, unless the ``--clear`` or ``--upgrade`` option was provided. Now,
-   if an existing directory is specified, its contents are removed and
-   the directory is processed as if it had been newly created.
+   raised, unless the ``--clear`` or ``--upgrade`` option was provided.
 
 The created ``pyvenv.cfg`` file also includes the
 ``include-system-site-packages`` key, set to ``true`` if ``venv`` is