From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 1 May 2023 05:58:33 +0000 (-0700) Subject: [3.11] Adjust expression from `==` to `!=` in alignment with the meaning of the parag... X-Git-Tag: v3.11.4~139 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8055b889ca2a931af1288d140c7e471700a41d2;p=thirdparty%2FPython%2Fcpython.git [3.11] Adjust expression from `==` to `!=` in alignment with the meaning of the paragraph. (GH-104021) (GH-104031) (cherry picked from commit 93107aa2a49a9354ffb10b3cd263dc3e99ebdeff) --- diff --git a/Doc/library/venv.rst b/Doc/library/venv.rst index ff3c4b514b59..07a6f5f8920f 100644 --- a/Doc/library/venv.rst +++ b/Doc/library/venv.rst @@ -55,7 +55,7 @@ point to the directories of the virtual environment, whereas :data:`sys.base_prefix` and :data:`sys.base_exec_prefix` point to those of the base Python used to create the environment. It is sufficient to check -``sys.prefix == sys.base_prefix`` to determine if the current interpreter is +``sys.prefix != sys.base_prefix`` to determine if the current interpreter is running from a virtual environment. A virtual environment may be "activated" using a script in its binary directory