Skip to content

Commit

Permalink
clarify comment about removal of del sys.path0
Browse files Browse the repository at this point in the history
  • Loading branch information
rickeylev authored and chowder committed Nov 30, 2024
1 parent 81e6bbf commit c2ebbc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/private/stage2_bootstrap_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit c2ebbc4

Please sign in to comment.