SF bug 666444: 'help' makes linefeed only under Win32.

Reverting one of those irritating "security fixes".  fdopen() opens
files in binary mode.  That makes pydoc skip the \r\n on Windows that's
need to make the output readable in the shell.  Screw it.
This commit is contained in:
Tim Peters 2003-02-07 01:53:46 +00:00
parent 658375b833
commit 550e4e5583
1 changed files with 2 additions and 2 deletions

View File

@ -1229,8 +1229,8 @@ def pipepager(text, cmd):
def tempfilepager(text, cmd):
"""Page through text by invoking a program on a temporary file."""
import tempfile
(fd, filename) = tempfile.mkstemp()
file = os.fdopen(fd, 'w')
filename = tempfile.mktemp()
file = open(filename, 'w')
file.write(text)
file.close()
try: