summaryrefslogtreecommitdiff
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2007-12-28 03:57:56 +0000
committerKurt B. Kaiser <kbk@shore.net>2007-12-28 03:57:56 +0000
commitf609a345a4adaedd5806b4ec8439b84c409b9f66 (patch)
tree377d83d14d3d88d4c5bed6d3ef8fb86be6cfac2d /Lib/idlelib/PyShell.py
parentc3d7fe0dbe8ed193ec34615d69e4dee485855b45 (diff)
downloadcpython-git-f609a345a4adaedd5806b4ec8439b84c409b9f66.tar.gz
help() was not paging to the shell. Issue1650.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r--Lib/idlelib/PyShell.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 9962894d4d..434df67b09 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -828,6 +828,14 @@ class PyShell(OutputWindow):
sys.stdout = self.stdout
sys.stderr = self.stderr
sys.stdin = self
+ try:
+ # page help() text to shell.
+ import pydoc # import must be done here to capture i/o rebinding.
+ # XXX KBK 27Dec07 use a textView someday, but must work w/o subproc
+ pydoc.pager = pydoc.plainpager
+ except:
+ sys.stderr = sys.__stderr__
+ raise
#
self.history = self.History(self.text)
#