summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/pyshell.py
diff options
context:
space:
mode:
authorCheryl Sabella <cheryl.sabella@gmail.com>2019-06-02 18:56:47 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2019-06-02 18:56:47 (GMT)
commit6bdc4dee01788599808c7858e2fe9fdd72cf6792 (patch)
tree9799a90d1b34dcb30bb42edb9a9c5cf35a37fc35 /Lib/idlelib/pyshell.py
parent5df4025f42b30aca72f441899b361f748c304c57 (diff)
downloadcpython-6bdc4dee01788599808c7858e2fe9fdd72cf6792.zip
cpython-6bdc4dee01788599808c7858e2fe9fdd72cf6792.tar.gz
cpython-6bdc4dee01788599808c7858e2fe9fdd72cf6792.tar.bz2
bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307)
Changes in bpo- 31858 made the less informative 'context_use_ps1' redundant.
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-rwxr-xr-xLib/idlelib/pyshell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
index 2de4265..6e0707d 100755
--- a/Lib/idlelib/pyshell.py
+++ b/Lib/idlelib/pyshell.py
@@ -881,7 +881,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