mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#16135: Removal of OS/2 support (Python code partial cleanup)
This commit is contained in:
parent
f1af705720
commit
4791a24268
11 changed files with 20 additions and 89 deletions
|
@ -1393,7 +1393,7 @@ def getpager():
|
|||
return lambda text: pipepager(text, os.environ['PAGER'])
|
||||
if os.environ.get('TERM') in ('dumb', 'emacs'):
|
||||
return plainpager
|
||||
if sys.platform == 'win32' or sys.platform.startswith('os2'):
|
||||
if sys.platform == 'win32':
|
||||
return lambda text: tempfilepager(plain(text), 'more <')
|
||||
if hasattr(os, 'system') and os.system('(less) 2>/dev/null') == 0:
|
||||
return lambda text: pipepager(text, 'less')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue