diff options
author | Jesus Cea <jcea@jcea.es> | 2012-10-05 01:15:39 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2012-10-05 01:15:39 (GMT) |
commit | 4791a242688167ffc4abb3b9f42d6cd9e877652e (patch) | |
tree | 62a566c811ae808f9dd7a7aa10e655d4d3aad56b /Lib/pydoc.py | |
parent | f1af7057208da7b3d15703645688fea971a4fb5e (diff) | |
download | cpython-4791a242688167ffc4abb3b9f42d6cd9e877652e.zip cpython-4791a242688167ffc4abb3b9f42d6cd9e877652e.tar.gz cpython-4791a242688167ffc4abb3b9f42d6cd9e877652e.tar.bz2 |
#16135: Removal of OS/2 support (Python code partial cleanup)
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 aa296c4..b6aae5e 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -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') |