mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue