[Python-checkins] python/dist/src/Lib pydoc.py,1.56.8.3,1.56.8.4

montanaro@users.sourceforge.net montanaro@users.sourceforge.net
Thu, 26 Sep 2002 14:50:03 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv7758

Modified Files:
      Tag: release22-maint
	pydoc.py 
Log Message:
backport patch resulting from discussion on <http://python.org/sf/612111>.



Index: pydoc.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pydoc.py,v
retrieving revision 1.56.8.3
retrieving revision 1.56.8.4
diff -C2 -d -r1.56.8.3 -r1.56.8.4
*** pydoc.py	25 Mar 2002 13:11:47 -0000	1.56.8.3
--- pydoc.py	26 Sep 2002 21:50:01 -0000	1.56.8.4
***************
*** 1192,1196 ****
      if sys.platform == 'win32':
          return lambda text: tempfilepager(plain(text), 'more <')
!     if hasattr(os, 'system') and os.system('less 2>/dev/null') == 0:
          return lambda text: pipepager(text, 'less')
  
--- 1192,1196 ----
      if sys.platform == 'win32':
          return lambda text: tempfilepager(plain(text), 'more <')
!     if hasattr(os, 'system') and os.system('(less) 2>/dev/null') == 0:
          return lambda text: pipepager(text, 'less')