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.
This commit is contained in:
Cheryl Sabella 2019-06-02 14:56:47 -04:00 committed by Terry Jan Reedy
parent 5df4025f42
commit 6bdc4dee01
8 changed files with 13 additions and 13 deletions

View file

@ -11,7 +11,7 @@ class DummyEditwin:
self.text = text
self.indentwidth = 8
self.tabwidth = 8
self.context_use_ps1 = True
self.prompt_last_line = '>>>'
self.num_context_lines = 50, 500, 1000
_build_char_in_string_func = EditorWindow._build_char_in_string_func
@ -53,7 +53,7 @@ class HyperParserTest(unittest.TestCase):
def tearDown(self):
self.text.delete('1.0', 'end')
self.editwin.context_use_ps1 = True
self.editwin.prompt_last_line = '>>>'
def get_parser(self, index):
"""
@ -71,7 +71,7 @@ class HyperParserTest(unittest.TestCase):
self.assertIn('precedes', str(ve.exception))
# test without ps1
self.editwin.context_use_ps1 = False
self.editwin.prompt_last_line = ''
# number of lines lesser than 50
p = self.get_parser('end')