Skip to content

Commit d8055b8

Browse files
[3.11] Adjust expression from == to != in alignment with the meaning of the paragraph. (GH-104021) (GH-104031)
(cherry picked from commit 93107aa)
1 parent 2e5f1a1 commit d8055b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/venv.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ point to the directories of the virtual environment,
5555
whereas :data:`sys.base_prefix` and :data:`sys.base_exec_prefix`
5656
point to those of the base Python used to create the environment.
5757
It is sufficient to check
58-
``sys.prefix == sys.base_prefix`` to determine if the current interpreter is
58+
``sys.prefix != sys.base_prefix`` to determine if the current interpreter is
5959
running from a virtual environment.
6060

6161
A virtual environment may be "activated" using a script in its binary directory

0 commit comments

Comments
 (0)