mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
OS/2 more program behaves like Win32 more
(see patch #514490, by Stefan Schwarzer)
This commit is contained in:
parent
6c73af2754
commit
54e0eabc2d
1 changed files with 1 additions and 1 deletions
|
@ -1184,7 +1184,7 @@ def getpager():
|
||||||
return lambda text: pipepager(plain(text), os.environ['PAGER'])
|
return lambda text: pipepager(plain(text), os.environ['PAGER'])
|
||||||
else:
|
else:
|
||||||
return lambda text: pipepager(text, os.environ['PAGER'])
|
return lambda text: pipepager(text, os.environ['PAGER'])
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32' or sys.platform.startswith('os2'):
|
||||||
return lambda text: tempfilepager(plain(text), 'more <')
|
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')
|
return lambda text: pipepager(text, 'less')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue