]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport patch resulting from discussion on <http://python.org/sf/612111>.
authorSkip Montanaro <skip@pobox.com>
Thu, 26 Sep 2002 21:50:01 +0000 (21:50 +0000)
committerSkip Montanaro <skip@pobox.com>
Thu, 26 Sep 2002 21:50:01 +0000 (21:50 +0000)
Lib/pydoc.py

index abf84e6cd4d15bf95a2362ae53553f14d956681b..7eafe3833df45f641e1d6ccd2d6bbcf6b19d1bd3 100755 (executable)
@@ -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