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.
This commit is contained in:
Guido van Rossum 2001-03-02 04:27:08 +00:00
parent 207fda61a5
commit b616e114f7
1 changed files with 1 additions and 1 deletions

View File

@ -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)