]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport gvanrossum's checkin of
authorMichael W. Hudson <mwh@python.net>
Fri, 23 Aug 2002 16:28:16 +0000 (16:28 +0000)
committerMichael W. Hudson <mwh@python.net>
Fri, 23 Aug 2002 16:28:16 +0000 (16:28 +0000)
    revision 1.86 of libos.tex

SF bug 563750 (Alex Martelli): posix_tmpfile():

The file returned by tmpfile() has mode w+b, so use that in the call
to PyFile_FromFile().

Bugfix candidate.

Doc/lib/libos.tex

index a82f04058c93b1cd281126c215fda86de1be329a..7aed6fb415a1a5523cf47decd21e9b999b2d9b96 100644 (file)
@@ -311,7 +311,7 @@ Availability: \UNIX, Windows.
 \end{funcdesc}
 
 \begin{funcdesc}{tmpfile}{}
-Return a new file object opened in update mode (\samp{w+}).  The file
+Return a new file object opened in update mode (\samp{w+b}).  The file
 has no directory entries associated with it and will be automatically
 deleted once there are no file descriptors for the file.
 Availability: \UNIX, Windows.