diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2021-04-29 10:48:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-29 10:48:18 (GMT) |
commit | 8ec2f0dc0cd096b7a851b1a41e458daa23bf1ffc (patch) | |
tree | 1954c321cfe6e6f642fefb1ae32996df5b52eab7 /Lib/idlelib/pyshell.py | |
parent | f6ee4dad589c0953283dacb577a2d808fda7aae9 (diff) | |
download | cpython-8ec2f0dc0cd096b7a851b1a41e458daa23bf1ffc.zip cpython-8ec2f0dc0cd096b7a851b1a41e458daa23bf1ffc.tar.gz cpython-8ec2f0dc0cd096b7a851b1a41e458daa23bf1ffc.tar.bz2 |
bpo-37892: Use space indents in IDLE Shell (GH-25678)
Adding a newline to the prompt moves it out of the way of
user code input, which now starts at the left margin,
along with continuation lines.
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-rwxr-xr-x | Lib/idlelib/pyshell.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index 5830b7a..447e9ec 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -889,11 +889,11 @@ class PyShell(OutputWindow): OutputWindow.__init__(self, flist, None, None) - self.usetabs = True + self.usetabs = False # indentwidth must be 8 when using tabs. See note in EditorWindow: - self.indentwidth = 8 + self.indentwidth = 4 - self.sys_ps1 = sys.ps1 if hasattr(sys, 'ps1') else '>>> ' + self.sys_ps1 = sys.ps1 if hasattr(sys, 'ps1') else '>>>\n' self.prompt_last_line = self.sys_ps1.split('\n')[-1] self.prompt = self.sys_ps1 # Changes when debug active |