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

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

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
Miss Islington (bot) 2018-12-28 17:19:32 -08:00 committed by GitHub
parent b716c716b5
commit 95dc4577c3
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 @@ 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

View file

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