diff --git a/Lib/pydoc.py b/Lib/pydoc.py index d54bc226b92544a1f8a6d8049999d4a2036f00fb..ecee79b67d33f764c49764cd10cfda322a04fef2 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