diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-05-27 20:16:24 +0000 |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-05-27 20:16:24 +0000 |
commit | 2edb85d692f1708754a8c1331b0c28b3b6bb7c30 (patch) | |
tree | dd0b643a1fcd541781ef60ca7a12f2e44c6768c5 /Lib/pydoc.py | |
parent | 4f1e16338d8b467880589277da447d7a6c725d99 (diff) | |
download | cpython-git-2edb85d692f1708754a8c1331b0c28b3b6bb7c30.tar.gz |
Merged revisions 72966 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72966 | r.david.murray | 2009-05-27 16:07:21 -0400 (Wed, 27 May 2009) | 4 lines
fix issue #6121 by stripping spaces from the argument in the 'help'
function.
........
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 3afb9814d2..1103b013cc 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -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() |