Solaris from squawking if less isn't available. See
http://python.org/sf/612111 for details.
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