Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54e0eab

Browse files
author
Andrew MacIntyre
committed
OS/2 more program behaves like Win32 more
(see patch #514490, by Stefan Schwarzer)
1 parent 6c73af2 commit 54e0eab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/pydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ def getpager():
11841184
return lambda text: pipepager(plain(text), os.environ['PAGER'])
11851185
else:
11861186
return lambda text: pipepager(text, os.environ['PAGER'])
1187-
if sys.platform == 'win32':
1187+
if sys.platform == 'win32' or sys.platform.startswith('os2'):
11881188
return lambda text: tempfilepager(plain(text), 'more <')
11891189
if hasattr(os, 'system') and os.system('less 2>/dev/null') == 0:
11901190
return lambda text: pipepager(text, 'less')

0 commit comments

Comments
 (0)