]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Believe it or not, but "more" on Windows requires "more <file" rather
authorGuido van Rossum <guido@python.org>
Fri, 2 Mar 2001 04:27:08 +0000 (04:27 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 2 Mar 2001 04:27:08 +0000 (04:27 +0000)
than "more file".  Since tempfilepager() is only used on Windows, it
seems, do this unconditionally -- on Unix, it always invokes something
else.

Lib/pydoc.py

index 3b5c20abb7465642f69091c8fc83d932b8f067f6..2a5c62c29ca5837ee05b1956e4ab4a013d04a948 100755 (executable)
@@ -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)