mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	help() was not paging to the shell. Issue1650.
This commit is contained in:
		
							parent
							
								
									c3d7fe0dbe
								
							
						
					
					
						commit
						f609a345a4
					
				
					 3 changed files with 14 additions and 1 deletions
				
			
		|  | @ -828,6 +828,14 @@ def __init__(self, flist=None): | |||
|             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) | ||||
|         # | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kurt B. Kaiser
						Kurt B. Kaiser