summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-05-27 20:07:21 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-05-27 20:07:21 (GMT)
commitd67ea7d4c68a417d9854a15bc4f51478770ef920 (patch)
treeb574a6069efcc70984896a0e6cedc11c306ed3f1 /Lib/pydoc.py
parent1afec5d6bf1f0e5d0cb62e633c69ed37e2f03a9c (diff)
downloadcpython-d67ea7d4c68a417d9854a15bc4f51478770ef920.zip
cpython-d67ea7d4c68a417d9854a15bc4f51478770ef920.tar.gz
cpython-d67ea7d4c68a417d9854a15bc4f51478770ef920.tar.bz2
fix issue #6121 by stripping spaces from the argument in the 'help'
function.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index a70f016..76a2b64 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()