mirror of https://github.com/python/cpython
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:
parent
207fda61a5
commit
b616e114f7
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue