[Python-checkins] bpo-34055: Revert deletion of line in IDLE's PyShell (GH-11346)

Miss Islington (bot) webhook-mailer at python.org
Fri Dec 28 20:19:36 EST 2018


https://github.com/python/cpython/commit/95dc4577c3a1bb12978de5234aaf07839f4d7844
commit: 95dc4577c3a1bb12978de5234aaf07839f4d7844
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-12-28T17:19:32-08:00
summary:

bpo-34055: Revert deletion of line in IDLE's PyShell (GH-11346)


The attribute is still used in other modules.
(cherry picked from commit 4bc246786f003cdf1fffb3403b4cd92fc42ba9ef)

Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu>

files:
A Misc/NEWS.d/next/IDLE/2018-12-28-17-16-33.bpo-34055.TmmpzR.rst
M Lib/idlelib/pyshell.py

diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
index 81a97ef6d6bc..b6172fd6b9bb 100755
--- a/Lib/idlelib/pyshell.py
+++ b/Lib/idlelib/pyshell.py
@@ -882,7 +882,7 @@ def __init__(self, flist=None):
         self.usetabs = True
         # indentwidth must be 8 when using tabs.  See note in EditorWindow:
         self.indentwidth = 8
-
+        self.context_use_ps1 = True
         self.sys_ps1 = sys.ps1 if hasattr(sys, 'ps1') else '>>> '
         self.prompt_last_line = self.sys_ps1.split('\n')[-1]
         self.prompt = self.sys_ps1  # Changes when debug active
diff --git a/Misc/NEWS.d/next/IDLE/2018-12-28-17-16-33.bpo-34055.TmmpzR.rst b/Misc/NEWS.d/next/IDLE/2018-12-28-17-16-33.bpo-34055.TmmpzR.rst
new file mode 100644
index 000000000000..7e475fbfa9f3
--- /dev/null
+++ b/Misc/NEWS.d/next/IDLE/2018-12-28-17-16-33.bpo-34055.TmmpzR.rst
@@ -0,0 +1 @@
+Fix erroneous 'smart' indents and newlines in IDLE Shell.



More information about the Python-checkins mailing list