[Patches] [ python-Patches-514490 ] Better pager selection for OS/2

noreply@sourceforge.net noreply@sourceforge.net
Sat, 02 Mar 2002 19:21:54 -0800


Patches item #514490, was opened at 2002-02-08 07:10
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=514490&group_id=5470

Category: Library (Lib)
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Stefan Schwarzer (sschwarzer)
Assigned to: Andrew I MacIntyre (aimacintyre)
Summary: Better pager selection for OS/2

Initial Comment:
With the current implementation (rev. 1.56) of pydoc.py the first call of the help command gives (when 
the pager environmment variable is not set):

Python 2.2 (#0, Dec 24 2001, 18:42:48) [EMX GCC 2.8.1] on os2emx
Type "help", "copyright", "credits" or "license" for more information.
>>> help(help)
SYS0003: The system cannot find the path specified.

Help on instance of _Helper:

Type help() for interactive help, or help(object) for help about object.

>>>

After the error message one has to press Ctrl-C. Further invocations of help work, though.

The attached patch selects 'more <' as the default pager when no PAGER env. variable is set, like on 
Windows. I use os.platform.startswith to deal with a possible future port with os.platform == 'os2vac'.



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

>Comment By: Andrew I MacIntyre (aimacintyre)
Date: 2002-03-03 14:21

Message:
Logged In: YES 
user_id=250749

Committed.  Thanks for the patch!

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

Comment By: Andrew I MacIntyre (aimacintyre)
Date: 2002-02-13 23:40

Message:
Logged In: YES 
user_id=250749

The patch looks Ok to me.  I plan to apply it after I have all the EMX port patches into CVS.

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

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