diff options
| author | Kurt B. Kaiser <kbk@shore.net> | 2007-12-28 03:57:56 (GMT) | 
|---|---|---|
| committer | Kurt B. Kaiser <kbk@shore.net> | 2007-12-28 03:57:56 (GMT) | 
| commit | f609a345a4adaedd5806b4ec8439b84c409b9f66 (patch) | |
| tree | 377d83d14d3d88d4c5bed6d3ef8fb86be6cfac2d /Lib/idlelib/run.py | |
| parent | c3d7fe0dbe8ed193ec34615d69e4dee485855b45 (diff) | |
| download | cpython-f609a345a4adaedd5806b4ec8439b84c409b9f66.zip cpython-f609a345a4adaedd5806b4ec8439b84c409b9f66.tar.gz cpython-f609a345a4adaedd5806b4ec8439b84c409b9f66.tar.bz2  | |
help() was not paging to the shell.  Issue1650.
Diffstat (limited to 'Lib/idlelib/run.py')
| -rw-r--r-- | Lib/idlelib/run.py | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 9fbe0e9..407e543 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -247,6 +247,9 @@ class MyHandler(rpc.RPCHandler):          sys.stdin = self.console = self.get_remote_proxy("stdin")          sys.stdout = self.get_remote_proxy("stdout")          sys.stderr = self.get_remote_proxy("stderr") +        # page help() text to shell. +        import pydoc # import must be done here to capture i/o binding +        pydoc.pager = pydoc.plainpager          from idlelib import IOBinding          sys.stdin.encoding = sys.stdout.encoding = \                               sys.stderr.encoding = IOBinding.encoding  | 
