mirror of https://github.com/python/cpython.git
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.write(text)
|
||||||
file.close()
|
file.close()
|
||||||
try:
|
try:
|
||||||
os.system(cmd + ' ' + filename)
|
os.system(cmd + ' <' + filename)
|
||||||
finally:
|
finally:
|
||||||
os.unlink(filename)
|
os.unlink(filename)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue