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

The attribute is still used in other modules.
This commit is contained in:
Terry Jan Reedy 2018-12-28 20:06:16 -05:00 committed by GitHub
parent c0381aaea4
commit 4bc246786f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -0,0 +1 @@
Fix erroneous 'smart' indents and newlines in IDLE Shell.