Skip to content

Commit 93107aa

Browse files
authored
Adjust expression from == to != in alignment with the meaning of the paragraph. (GH-104021)
1 parent 4b27972 commit 93107aa

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)