[Python-checkins] Adjust expression from `==` to `!=` in alignment with the meaning of the paragraph. (GH-104021)
vsajip
webhook-mailer at python.org
Mon May 1 01:47:41 EDT 2023
https://github.com/python/cpython/commit/93107aa2a49a9354ffb10b3cd263dc3e99ebdeff
commit: 93107aa2a49a9354ffb10b3cd263dc3e99ebdeff
branch: main
author: Ben Faulhaber <111227622+faulhaberben at users.noreply.github.com>
committer: vsajip <vinay_sajip at yahoo.co.uk>
date: 2023-05-01T06:47:34+01:00
summary:
Adjust expression from `==` to `!=` in alignment with the meaning of the paragraph. (GH-104021)
files:
M Doc/library/venv.rst
diff --git a/Doc/library/venv.rst b/Doc/library/venv.rst
index 52bf99e5bb0f..9e5672545dea 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
More information about the Python-checkins
mailing list