mirror of
https://github.com/python/cpython.git
synced 2025-07-29 22:24:49 +00:00
fix issue #6121 by stripping spaces from the argument in the 'help'
function.
This commit is contained in:
parent
1afec5d6bf
commit
d67ea7d4c6
3 changed files with 12 additions and 0 deletions
|
@ -1751,6 +1751,7 @@ has the same effect as typing a particular string at the help> prompt.
|
|||
|
||||
def help(self, request):
|
||||
if type(request) is type(''):
|
||||
request = request.strip()
|
||||
if request == 'help': self.intro()
|
||||
elif request == 'keywords': self.listkeywords()
|
||||
elif request == 'symbols': self.listsymbols()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue