Skip to content

Commit 3efb54f

Browse files
authored
White space after REPL prompt (#22549)
There should be white space after new REPL prompt that I override for purpose of shell integration. Resolves: #22548
1 parent 261ae66 commit 3efb54f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pythonFiles/pythonrc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22

3-
original_ps1 = ">>>"
3+
original_ps1 = ">>> "
44

55

66
class repl_hooks:

pythonFiles/tests/test_shell_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def test_decoration_success():
1010

1111
ps1.hooks.failure_flag = False
1212
result = str(ps1)
13-
assert result == "\x1b]633;D;00\x07\x1b]633;A\x07>>>\x1b]633;B\x07\x1b]633;C\x07"
13+
assert result == "\x1b]633;D;00\x07\x1b]633;A\x07>>> \x1b]633;B\x07\x1b]633;C\x07"
1414

1515

1616
def test_decoration_failure():
@@ -20,7 +20,7 @@ def test_decoration_failure():
2020
ps1.hooks.failure_flag = True
2121
result = str(ps1)
2222

23-
assert result == "\x1b]633;D;10\x07\x1b]633;A\x07>>>\x1b]633;B\x07\x1b]633;C\x07"
23+
assert result == "\x1b]633;D;10\x07\x1b]633;A\x07>>> \x1b]633;B\x07\x1b]633;C\x07"
2424

2525

2626
def test_displayhook_call():

0 commit comments

Comments
 (0)