Skip to content

Commit 34889a5

Browse files
authored
[3.8] venv: Update Aspen URL in 'activate' script comment (GH-21797)
A comment in the venv `activate` script (as well as `activate.csh` and `activate.fish`) referencing Aspen magic directories lists a "further information" URL for Aspen at the zetadev.com website. zetadev.com changed ownership in 2019, and now redirects to a server in China with an expired security certificate. Out of an abundance of caution, while not changing the _code_ for the activate scripts, this PR updates the URL in those comments to reference Aspen's new documentation home at https://aspen.io/. No issue created, as I suspect this falls within the definition of a "trivial" change. Please let me know if I'm wrong about that, and I'll open the necessary issue(s). While filed against the 3.8 branch, strictly speaking this is not a backported PR. The comment in question was entirely removed from the script between Python 3.8 and 3.9. (IMHO this _should_ probably be backported to 3.7 and 3.6, as well. I'll happily file those PRs if needed.) Automerge-Triggered-By: @vsajip
1 parent 2bcd0fe commit 34889a5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Lib/venv/scripts/common/activate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
5959
else
6060
if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then
6161
# special case for Aspen magic directories
62-
# see http://www.zetadev.com/software/aspen/
62+
# see https://aspen.io/
6363
PS1="[`basename \`dirname \"$VIRTUAL_ENV\"\``] $PS1"
6464
else
6565
PS1="(`basename \"$VIRTUAL_ENV\"`)$PS1"

Lib/venv/scripts/posix/activate.csh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
2222
else
2323
if (`basename "VIRTUAL_ENV"` == "__") then
2424
# special case for Aspen magic directories
25-
# see http://www.zetadev.com/software/aspen/
25+
# see https://aspen.io/
2626
set env_name = `basename \`dirname "$VIRTUAL_ENV"\``
2727
else
2828
set env_name = `basename "$VIRTUAL_ENV"`

Lib/venv/scripts/posix/activate.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
5959
set -l _checkbase (basename "$VIRTUAL_ENV")
6060
if test $_checkbase = "__"
6161
# special case for Aspen magic directories
62-
# see http://www.zetadev.com/software/aspen/
62+
# see https://aspen.io/
6363
printf "%s[%s]%s " (set_color -b blue white) (basename (dirname "$VIRTUAL_ENV")) (set_color normal)
6464
else
6565
printf "%s(%s)%s" (set_color -b blue white) (basename "$VIRTUAL_ENV") (set_color normal)

0 commit comments

Comments
 (0)