From 1f1b9d3d0de4dcf272f7908ce001833ac4cdabbb Mon Sep 17 00:00:00 2001 From: "R. David Murray" Date: Wed, 27 May 2009 20:56:59 +0000 Subject: 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. ........ --- Lib/pydoc.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/pydoc.py') diff --git a/Lib/pydoc.py b/Lib/pydoc.py index dd4fdfdba81..6475decc297 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1740,6 +1740,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() -- cgit v1.2.3