]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Adjust expression from `==` to `!=` in alignment with the meaning of the parag...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 1 May 2023 05:58:33 +0000 (22:58 -0700)
committerGitHub <noreply@github.com>
Mon, 1 May 2023 05:58:33 +0000 (06:58 +0100)
(cherry picked from commit 93107aa2a49a9354ffb10b3cd263dc3e99ebdeff)

Doc/library/venv.rst

index ff3c4b514b599084e8c3e243e713efe21719e306..07a6f5f8920f9c18ca3acb1cb506d2e4839cc0ce 100644 (file)
@@ -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