From: Skip Montanaro Date: Thu, 26 Sep 2002 21:50:01 +0000 (+0000) Subject: backport patch resulting from discussion on . X-Git-Tag: v2.2.2b1~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=459a58f26612058b2697669b67f9bc22d280171c;p=thirdparty%2FPython%2Fcpython.git backport patch resulting from discussion on . --- diff --git a/Lib/pydoc.py b/Lib/pydoc.py index abf84e6cd4d1..7eafe3833df4 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1191,7 +1191,7 @@ def getpager(): return lambda text: pipepager(text, os.environ['PAGER']) if sys.platform == 'win32': return lambda text: tempfilepager(plain(text), 'more <') - if hasattr(os, 'system') and os.system('less 2>/dev/null') == 0: + if hasattr(os, 'system') and os.system('(less) 2>/dev/null') == 0: return lambda text: pipepager(text, 'less') import tempfile