File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2061,9 +2061,9 @@ def interact(self):
20612061 request = self .getline ('help> ' )
20622062 except (KeyboardInterrupt , EOFError ):
20632063 break
2064+ if not request or request .isspace ():
2065+ continue # back to the prompt
20642066 request = request .strip ()
2065- if not request :
2066- continue
20672067
20682068 # Make sure significant trailing quoting marks of literals don't
20692069 # get deleted while cleaning input
Original file line number Diff line number Diff line change @@ -2179,7 +2179,7 @@ def mock_getline(prompt):
21792179 with unittest .mock .patch .object (helper , "getline" , mock_getline ):
21802180 helper .interact ()
21812181
2182- return output .getvalue ().replace (os .linesep , " \n " )
2182+ return output .getvalue ().split (os .linesep )
21832183
21842184 def test_keywords (self ):
21852185 self .assertEqual (sorted (pydoc .Helper .keywords ),
You can’t perform that action at this time.
0 commit comments