[3.11] Adjust expression from == to != in alignment with the meaning of the paragraph. (GH-104021) (GH-104031)

(cherry picked from commit 93107aa2a4)
This commit is contained in:
Miss Islington (bot) 2023-04-30 22:58:33 -07:00 committed by GitHub
parent 2e5f1a1259
commit d8055b889c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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