summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-03-02 04:27:08 (GMT)
committerGuido van Rossum <guido@python.org>2001-03-02 04:27:08 (GMT)
commitb616e114f7466d7064513c47246718064f16b250 (patch)
treee581c38a85d60f2d2f40297aa12dd47024dd29c9 /Lib/pydoc.py
parent207fda61a5ee3d4ab0bac3e9d0415c73a9d6e4d0 (diff)
downloadcpython-b616e114f7466d7064513c47246718064f16b250.zip
cpython-b616e114f7466d7064513c47246718064f16b250.tar.gz
cpython-b616e114f7466d7064513c47246718064f16b250.tar.bz2
Believe it or not, but "more" on Windows requires "more <file" rather
than "more file". Since tempfilepager() is only used on Windows, it seems, do this unconditionally -- on Unix, it always invokes something else.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 3b5c20a..2a5c62c 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -835,7 +835,7 @@ def tempfilepager(text, cmd):
file.write(text)
file.close()
try:
- os.system(cmd + ' ' + filename)
+ os.system(cmd + ' <' + filename)
finally:
os.unlink(filename)