]> granicus.if.org Git - python/commitdiff
bpo-34055: Revert deletion of line in IDLE's PyShell (#11346)
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 29 Dec 2018 01:06:16 +0000 (20:06 -0500)
committerGitHub <noreply@github.com>
Sat, 29 Dec 2018 01:06:16 +0000 (20:06 -0500)
The attribute is still used in other modules.

Lib/idlelib/pyshell.py
Misc/NEWS.d/next/IDLE/2018-12-28-17-16-33.bpo-34055.TmmpzR.rst [new file with mode: 0644]

index 81a97ef6d6bcc511dc0a2d4b41d107a920d4cfc8..b6172fd6b9bba64570d79dd9011001fc60bef537 100755 (executable)
@@ -882,7 +882,7 @@ class PyShell(OutputWindow):
         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 (file)
index 0000000..7e475fb
--- /dev/null
@@ -0,0 +1 @@
+Fix erroneous 'smart' indents and newlines in IDLE Shell.