diff options
author | Skip Montanaro <skip@pobox.com> | 2002-09-26 21:50:01 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2002-09-26 21:50:01 (GMT) |
commit | 459a58f26612058b2697669b67f9bc22d280171c (patch) | |
tree | e0ee008a29884a3594313f361f8b3d3e7235f6e4 /Lib/pydoc.py | |
parent | 65587a90c185c6b81220dd8f4dee1a629d23bd8d (diff) | |
download | cpython-459a58f26612058b2697669b67f9bc22d280171c.zip cpython-459a58f26612058b2697669b67f9bc22d280171c.tar.gz cpython-459a58f26612058b2697669b67f9bc22d280171c.tar.bz2 |
backport patch resulting from discussion on <http://python.org/sf/612111>.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index abf84e6..7eafe38 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 |