commit | b616e114f7466d7064513c47246718064f16b250 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Mar 02 04:27:08 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Mar 02 04:27:08 2001 +0000 |
tree | e581c38a85d60f2d2f40297aa12dd47024dd29c9 | |
parent | 207fda61a5ee3d4ab0bac3e9d0415c73a9d6e4d0 [diff] |
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.
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 @@ file.write(text) file.close() try: - os.system(cmd + ' ' + filename) + os.system(cmd + ' <' + filename) finally: os.unlink(filename)