Skip to content

Commit 6fa1136

Browse files
yihong0618adqm
andauthored
Update Lib/pydoc.py
Co-authored-by: adam j hartz <[email protected]>
1 parent 7462dbb commit 6fa1136

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/pydoc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2059,10 +2059,11 @@ def interact(self):
20592059
while True:
20602060
try:
20612061
request = self.getline('help> ')
2062-
if not request.strip(): continue
20632062
except (KeyboardInterrupt, EOFError):
20642063
break
20652064
request = request.strip()
2065+
if not request:
2066+
continue
20662067

20672068
# Make sure significant trailing quoting marks of literals don't
20682069
# get deleted while cleaning input

0 commit comments

Comments
 (0)