Skip to content

Commit b016818

Browse files
committed
Apply adam j hartz's suggestion
1 parent 93e170e commit b016818

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/pydoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,9 +2006,9 @@ def interact(self):
20062006
request = self.getline('help> ')
20072007
except (KeyboardInterrupt, EOFError):
20082008
break
2009-
if not request or request.isspace():
2010-
continue # back to the prompt
20112009
request = request.strip()
2010+
if not request:
2011+
continue # back to the prompt
20122012

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

0 commit comments

Comments
 (0)