Kaydet (Commit) 459a58f2 authored tarafından Skip Montanaro's avatar Skip Montanaro

backport patch resulting from discussion on <http://python.org/sf/612111>.

üst 65587a90
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment