Skip to content

Commit f1eba0c

Browse files
committed
fix: make it the same behavior in repl help mode
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent bde1291 commit f1eba0c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/pydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,7 @@ def interact(self):
20592059
while True:
20602060
try:
20612061
request = self.getline('help> ')
2062-
if not request: break
2062+
if not request: continue
20632063
except (KeyboardInterrupt, EOFError):
20642064
break
20652065
request = request.strip()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
make the same exit behavior in repl help mode.

0 commit comments

Comments
 (0)