summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLib/pydoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index d54bc22..ecee79b 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -1199,7 +1199,7 @@ def getpager():
return lambda text: pipepager(text, os.environ['PAGER'])
if sys.platform == 'win32' or sys.platform.startswith('os2'):
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