diff options
author | Guido van Rossum <guido@python.org> | 2001-03-02 04:27:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-03-02 04:27:08 (GMT) |
commit | b616e114f7466d7064513c47246718064f16b250 (patch) | |
tree | e581c38a85d60f2d2f40297aa12dd47024dd29c9 /Lib/pydoc.py | |
parent | 207fda61a5ee3d4ab0bac3e9d0415c73a9d6e4d0 (diff) | |
download | cpython-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-x | Lib/pydoc.py | 2 |
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) |