From c2ebbc4d1b529a276a08befb49823a6b1dc7c2a1 Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Sun, 17 Nov 2024 16:44:47 -0800 Subject: [PATCH] clarify comment about removal of del sys.path0 --- python/private/stage2_bootstrap_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/private/stage2_bootstrap_template.py b/python/private/stage2_bootstrap_template.py index 9d29f8287e..1e19a71b64 100644 --- a/python/private/stage2_bootstrap_template.py +++ b/python/private/stage2_bootstrap_template.py @@ -12,7 +12,7 @@ # behaviour, which we set in the stage 1 bootstrap. # So the prepended entry needs to be removed only if the above option is either # unset or not supported by the interpreter. -# TODO(#7091): Remove this hack when we drop support for Python 3.10 and below +# NOTE: This can be removed when Python 3.10 and below is no longer supported if not getattr(sys.flags, "safe_path", False): del sys.path[0]