Skip to content

Commit 149740a

Browse files
committed
Purifying sys.path is implied by -P
1 parent ac6cd83 commit 149740a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test_repl.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def spawn_repl(*args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, custom=F
4444
# default module search path.
4545
stdin_fname = os.path.join(os.path.dirname(sys.executable), "<stdin>")
4646
cmd_line = [stdin_fname]
47-
# Isolated mode implies -E, -P and -s, purifies sys.path and ignores PYTHON*
48-
# variables.
47+
# Isolated mode implies -EPs and ignores PYTHON* variables.
4948
if isolated:
5049
cmd_line.append('-I')
5150
# Don't re-run the built-in REPL from interactive mode

0 commit comments

Comments
 (0)