help() was not paging to the shell. Issue1650.

This commit is contained in:
Kurt B. Kaiser 2007-12-28 03:57:56 +00:00
parent c3d7fe0dbe
commit f609a345a4
3 changed files with 14 additions and 1 deletions

View file

@ -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