From 459a58f26612058b2697669b67f9bc22d280171c Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Thu, 26 Sep 2002 21:50:01 +0000 Subject: [PATCH] backport patch resulting from discussion on . --- Lib/pydoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3