[Patches] [ python-Patches-612111 ] quietly select between 'less' and 'more'

noreply@sourceforge.net noreply@sourceforge.net
Fri, 20 Sep 2002 06:24:25 -0700


Patches item #612111, was opened at 2002-09-20 08:24
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=612111&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Neal Norwitz (nnorwitz)
Summary: quietly select between 'less' and 'more'

Initial Comment:
On Unixoid systems without the 'less' command, executing 
'pydoc.help(mod)' emits:

    sh: less: not found

which is annoying.  The attached patch gets it to quietly look for 'less' 
and 'more'.  I don't know if the locateexe() function is entirely correct 
(especially considering Windows) or if there are other pagers available.

backport candidate?  I know this behavior exists in 2.1.3 and 2.2.1.  
Dunno if it's more than a wart though.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=612111&group_id=5470